public class TypeLabel extends Object implements Comparable<TypeLabel>, Serializable
A Type Label
A class which represents the unique label of any Type in the GraknGraph.
Also contains a static method for producing TypeLabels from Strings.
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(TypeLabel o) |
boolean |
equals(Object o) |
String |
getValue() |
int |
hashCode() |
TypeLabel |
map(java.util.function.Function<String,String> mapper)
|
static TypeLabel |
of(String value) |
String |
toString() |
public String getValue()
public TypeLabel map(java.util.function.Function<String,String> mapper)
mapper - a function to apply to the underlying type labelpublic int compareTo(TypeLabel o)
compareTo in interface Comparable<TypeLabel>Copyright © 2017 Grakn Labs Ltd. All rights reserved.