Enum Constant and Description |
---|
DISCARDING |
FIRSTROUND |
GAMEOVER |
PLAYING |
ROBBING |
ROLLING |
SECONDROUND |
WAITING |
Modifier and Type | Method and Description |
---|---|
static GameRound |
fromString(java.lang.String s) |
static java.lang.String |
toString(GameRound type) |
static GameRound |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GameRound[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GameRound WAITING
public static final GameRound ROLLING
public static final GameRound ROBBING
public static final GameRound PLAYING
public static final GameRound DISCARDING
public static final GameRound FIRSTROUND
public static final GameRound SECONDROUND
public static final GameRound GAMEOVER
public static GameRound[] values()
for (GameRound c : GameRound.values()) System.out.println(c);
public static GameRound 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 nullpublic static java.lang.String toString(GameRound type)
public static GameRound fromString(java.lang.String s)