Enum Key.Type
- All Implemented Interfaces:
Comparable<Key.Type>
- Enclosing class:
Key
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBackspace.Shift-Tab.A printable character; seeKey.codePoint.Control and a letter other than the ones named here; seeKey.codePointfor the letter.Ctrl-C.Ctrl-D.Delete.Down arrow.End.Enter or Return.The end of standard input.Escape on its own.A function key; seeKey.number().Home.Insert.Left arrow.Page Down.Page Up.Right arrow.Tab.An escape sequence this decoder does not know.Up arrow. -
Method Summary
Methods inherited from class Enum
clone, compareTo, equals, getDeclaringClass, getEnumValues, hashCode, name, ordinal, setEnumValues, toString, valueOf
-
Enum Constant Details
-
CHAR
A printable character; seeKey.codePoint. -
ENTER
Enter or Return. -
TAB
Tab. -
BACKTAB
Shift-Tab. -
BACKSPACE
Backspace. -
DELETE
Delete. -
INSERT
Insert. -
ESCAPE
Escape on its own. -
UP
Up arrow. -
DOWN
Down arrow. -
LEFT
Left arrow. -
RIGHT
Right arrow. -
HOME
Home. -
END
End. -
PAGE_UP
Page Up. -
PAGE_DOWN
Page Down. -
FUNCTION
A function key; seeKey.number(). -
CTRL
Control and a letter other than the ones named here; seeKey.codePointfor the letter. -
CTRL_C
Ctrl-C. -
CTRL_D
Ctrl-D. -
EOF
The end of standard input. -
UNKNOWN
An escape sequence this decoder does not know.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-