public static enum TicTacToeModel.State extends java.lang.Enum<TicTacToeModel.State>
Enum Constant and Description |
---|
ECKS
'X' state for a square.
|
EMPTY
State for an empty square.
|
OUH
'O' state for a square.
|
Modifier and Type | Method and Description |
---|---|
static TicTacToeModel.State |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TicTacToeModel.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TicTacToeModel.State EMPTY
public static final TicTacToeModel.State OUH
public static final TicTacToeModel.State ECKS
public static TicTacToeModel.State[] values()
for (TicTacToeModel.State c : TicTacToeModel.State.values()) System.out.println(c);
public static TicTacToeModel.State 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