public final class Keys extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Keys.Key
A
parsed key that includes information about
it's Keys.KeyType and some other data that may be useful in further
processing. |
static class |
Keys.KeyType
The various kinds of keys that can be
parsed. |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isFunctionKey(String key)
Return
true if key is a function key. |
static boolean |
isNavigationKey(String key)
Return
true if key is a navigation key. |
static boolean |
isWritable(String key)
Return
true of the key is a valid data key for writing. |
static Keys.Key |
parse(String key)
Parse
key and return a Keys.Key object that contains the
relevant information. |
static ImplicitKeyRecordFunction |
tryParseFunction(String key)
If possible, parse the
Function that is expressed by the
key. |
public static boolean isFunctionKey(String key)
true if key is a function key.key - true if the provided key is a function keypublic static boolean isNavigationKey(String key)
true if key is a navigation key.key - true if the provided key is a valid navigation
keypublic static boolean isWritable(String key)
true of the key is a valid data key for writing.key - true if the provided key is valid for writingpublic static Keys.Key parse(String key)
key and return a Keys.Key object that contains the
relevant information.key - Keys.Key