public static enum PinballEngine.Result extends java.lang.Enum<PinballEngine.Result>
Enum Constant and Description |
---|
GREEN_VICTORY |
PLAY_ON |
RED_VICTORY |
TIE_GAME |
Modifier and Type | Method and Description |
---|---|
static PinballEngine.Result |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PinballEngine.Result[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PinballEngine.Result RED_VICTORY
public static final PinballEngine.Result GREEN_VICTORY
public static final PinballEngine.Result TIE_GAME
public static final PinballEngine.Result PLAY_ON
public static PinballEngine.Result[] values()
for (PinballEngine.Result c : PinballEngine.Result.values()) System.out.println(c);
public static PinballEngine.Result valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null