Serializable, Comparable<ArrowKey>public enum ArrowKey extends Enum<ArrowKey>
| Enum Constant | Description |
|---|---|
DOWN |
Arrow down key.
|
LEFT |
Arrow left key.
|
RIGHT |
Arrow right key.
|
UP |
Arrow up key.
|
| Modifier and Type | Method | Description |
|---|---|---|
static ArrowKey |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static ArrowKey[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ArrowKey UP
public static final ArrowKey DOWN
public static final ArrowKey LEFT
public static final ArrowKey RIGHT
public static ArrowKey[] values()
for (ArrowKey c : ArrowKey.values()) System.out.println(c);
public static ArrowKey valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2014–2018. All rights reserved.