public final class VarName extends Object
| Modifier and Type | Method and Description |
|---|---|
static VarName |
anon() |
boolean |
equals(Object o) |
String |
getValue()
Get the string name of the variable (without prefixed "$")
|
int |
hashCode() |
VarName |
map(java.util.function.Function<String,String> mapper)
Rename a variable (does not modify the original
VarName) |
static VarName |
of(String value) |
String |
shortName()
Get a shorter representation of the variable (with prefixed "$")
|
String |
toString() |
public static VarName anon()
public String getValue()
public VarName map(java.util.function.Function<String,String> mapper)
VarName)mapper - a function to apply to the underlying variable namepublic String shortName()
Copyright © 2017 Grakn Labs Ltd. All rights reserved.