public class Casting extends Object implements CacheOwner
Represents An Thing Playing a Role
Wraps the Schema.EdgeLabel#ROLE_PLAYER Edge which contains the information unifying an Thing,
Relationship and Role.
| Modifier and Type | Method and Description |
|---|---|
Collection<Cache> |
caches() |
static Casting |
create(EdgeElement edgeElement,
Relationship relationship,
Role role,
Thing thing) |
void |
delete()
|
boolean |
equals(Object object) |
Relationship |
getRelationship() |
RelationshipType |
getRelationshipType() |
Role |
getRole() |
Thing |
getRolePlayer() |
int |
hashCode() |
static Casting |
withRelationship(EdgeElement edgeElement,
Relationship relationship) |
static Casting |
withThing(EdgeElement edgeElement,
Thing thing) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitfrom, registerCache, txCacheClear, txCacheFlushpublic static Casting create(EdgeElement edgeElement, Relationship relationship, Role role, Thing thing)
public static Casting withThing(EdgeElement edgeElement, Thing thing)
public static Casting withRelationship(EdgeElement edgeElement, Relationship relationship)
public Collection<Cache> caches()
caches in interface CacheOwnerCacheOwnerpublic RelationshipType getRelationshipType()
RelationshipType the Thing is taking part inpublic Relationship getRelationship()
Relationship which is linking the Role and the instancepublic int hashCode()
public void delete()
Copyright © 2018 Grakn Labs Ltd. All rights reserved.