@Immutable public static final class Keys.Key extends Object
parsed key that includes information about
it's Keys.KeyType and some other data that may be useful in further
processing.| Modifier and Type | Method and Description |
|---|---|
<T> T |
data()
Return the data associated with this
Keys.Key. |
String |
toString() |
Keys.KeyType |
type()
Return the
Keys.KeyType. |
String |
value()
Return the value of this
Keys.Key. |
public <T> T data()
Keys.Key.
For example, if this is a Keys.KeyType.NAVIGATION_KEY, this will
return a String[] containing all of the stops in the path.
Or, if this is a Keys.KeyType.FUNCTION_KEY, this will return the
result of Keys.tryParseFunction(String).
public Keys.KeyType type()
Keys.KeyType.