public class RelationPlayer extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Optional<VarPatternAdmin> |
getRole() |
VarPatternAdmin |
getRolePlayer() |
int |
hashCode() |
static RelationPlayer |
of(VarPatternAdmin rolePlayer)
A role - role player pair without a role specified
|
static RelationPlayer |
of(VarPatternAdmin role,
VarPatternAdmin rolePlayer) |
String |
toString() |
public static RelationPlayer of(VarPatternAdmin rolePlayer)
rolePlayer - the role player of the role - role player pairpublic static RelationPlayer of(VarPatternAdmin role, VarPatternAdmin rolePlayer)
role - the role of the role - role player pairrolePlayer - the role player of the role - role player pair@CheckReturnValue public Optional<VarPatternAdmin> getRole()
@CheckReturnValue public VarPatternAdmin getRolePlayer()
Copyright © 2017 Grakn Labs Ltd. All rights reserved.