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