public enum GameStatus extends java.lang.Enum<GameStatus>
Enum Constant and Description |
---|
DEALER_TURN |
DEALER_WON |
NEW_GAME |
PLAYER_TURN |
PLAYER_WON |
Modifier and Type | Method and Description |
---|---|
static GameStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GameStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GameStatus PLAYER_WON
public static final GameStatus DEALER_WON
public static final GameStatus DEALER_TURN
public static final GameStatus NEW_GAME
public static final GameStatus PLAYER_TURN
public static GameStatus[] values()
for (GameStatus c : GameStatus.values()) System.out.println(c);
public static GameStatus 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