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