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