public static enum Buttons.Button extends Enum<Buttons.Button>
Modifier and Type | Field and Description |
---|---|
int |
id |
Modifier and Type | Method and Description |
---|---|
static Buttons.Button |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Buttons.Button[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Buttons.Button UP
public static final Buttons.Button DOWN
public static final Buttons.Button LEFT
public static final Buttons.Button RIGHT
public static final Buttons.Button ENTER
public static final Buttons.Button ESCAPE
public static Buttons.Button[] values()
for (Buttons.Button c : Buttons.Button.values()) System.out.println(c);
public static Buttons.Button 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 null