Enum Key
- All Implemented Interfaces:
Serializable, Comparable<Key>, java.lang.constant.Constable, KeyAction
ANSCII enum key chart
- Author:
- Ståle W. Pedersen
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionbuffer()booleancontainKey(int[] input) booleanequalTo(int[] otherValues) booleanstatic KeyfindStartKey(int[] input) static KeyfindStartKey(int[] input, int position) charintgetCodePointAt(int index) intstatic KeygetKey(int[] otherValues) int[]booleaninputStartsWithKey(int[] input) booleaninputStartsWithKey(int[] input, int position) booleanis of type a-z or A-ZbooleanisNumber()booleanstatic booleanisPrintable(int value) static booleanisPrintable(int[] keyValues) static booleanisPrintable(IntBuffer keyValues) intlength()static booleanstartsWithEscape(int[] input) static KeyReturns the enum constant of this type with the specified name.static Key[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface KeyAction
bufferEquals, name
-
Enum Constant Details
-
CTRL_AT
-
CTRL_A
-
CTRL_B
-
CTRL_C
-
CTRL_D
-
CTRL_E
-
CTRL_F
-
CTRL_G
-
CTRL_H
-
CTRL_I
-
CTRL_J
-
CTRL_K
-
CTRL_L
-
CTRL_M
-
CTRL_N
-
CTRL_O
-
CTRL_P
-
CTRL_Q
-
CTRL_R
-
CTRL_S
-
CTRL_T
-
CTRL_U
-
CTRL_V
-
CTRL_W
-
CTRL_X
-
CTRL_Y
-
CTRL_Z
-
ESC
-
FILE_SEPARATOR
-
GROUP_SEPARATOR
-
RECORD_SEPARATOR
-
UNIT_SEPARATOR
-
SPACE
-
EXCLAMATION
-
QUOTE
-
HASH
-
DOLLAR
-
PERCENT
-
AMPERSAND
-
APOSTROPHE
-
LEFT_PARANTHESIS
-
RIGHT_PARANTHESIS
-
STAR
-
PLUS
-
COMMA
-
MINUS
-
PERIOD
-
SLASH
-
ZERO
-
ONE
-
TWO
-
THREE
-
FOUR
-
FIVE
-
SIX
-
SEVEN
-
EIGHT
-
NINE
-
COLON
-
SEMI_COLON
-
LESS_THAN
-
EQUALS
-
GREATER_THAN
-
QUESTION_MARK
-
AT
-
A
-
B
-
C
-
D
-
E
-
F
-
G
-
H
-
I
-
J
-
K
-
L
-
M
-
N
-
O
-
P
-
Q
-
R
-
S
-
T
-
U
-
V
-
W
-
X
-
Y
-
Z
-
LEFT_SQUARE_BRACKET
-
BACKSLASH
-
RIGHT_SQUARE_BRACKET
-
HAT
-
UNDERSCORE
-
GRAVE
-
a
-
b
-
c
-
d
-
e
-
f
-
g
-
h
-
i
-
j
-
k
-
l
-
m
-
n
-
o
-
p
-
q
-
r
-
s
-
t
-
u
-
v
-
w
-
x
-
y
-
z
-
LEFT_CURLY_BRACKET
-
VERTICAL_BAR
-
RIGHT_CURLY_BRACKET
-
TILDE
-
BACKSPACE
-
WINDOWS_ESC
-
WINDOWS_ESC_2
-
UP
-
DOWN
-
RIGHT
-
LEFT
-
UP_2
-
DOWN_2
-
RIGHT_2
-
LEFT_2
-
META_a
-
META_b
-
META_c
-
META_d
-
META_e
-
META_f
-
META_l
-
META_u
-
META_BACKSPACE
-
DELETE
-
INSERT
-
PGUP
-
PGUP_2
-
PGDOWN
-
PGDOWN_2
-
HOME
-
HOME_2
-
HOME_3
-
END
-
END_2
-
END_3
-
META_CTRL_J
-
META_CTRL_D
-
CTRL_X_CTRL_U
-
CTRL_LEFT
-
CTRL_RIGHT
-
CTRL_UP
-
CTRL_DOWN
-
ENTER
-
ENTER_2
-
-
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
-
isCharacter
public boolean isCharacter()is of type a-z or A-Z -
isNumber
public boolean isNumber()- Returns:
- true if input is 0-9
-
isPrintable
public boolean isPrintable()- Returns:
- true if input is a valid char
-
isPrintable
public static boolean isPrintable(int value) -
isPrintable
public static boolean isPrintable(int[] keyValues) -
isPrintable
-
getAsChar
public char getAsChar() -
getKeyValues
public int[] getKeyValues() -
getKeyValuesAsString
-
getFirstValue
public int getFirstValue() -
startsWithEscape
public static boolean startsWithEscape(int[] input) -
getKey
-
findStartKey
-
findStartKey
-
inputStartsWithKey
public boolean inputStartsWithKey(int[] input) -
inputStartsWithKey
public boolean inputStartsWithKey(int[] input, int position) -
containKey
public boolean containKey(int[] input) -
equalTo
public boolean equalTo(int[] otherValues) -
equalTo
-
getCodePointAt
public int getCodePointAt(int index) - Specified by:
getCodePointAtin interfaceKeyAction
-
length
-
buffer
-