public static enum Game.Owner extends java.lang.Enum<Game.Owner>
Enum Constant | Description |
---|---|
PLAYER_1 |
This player wants to dissatisfy the acceptance condition.
|
PLAYER_2 |
This player wants to satisfy the acceptance condition.
|
Modifier and Type | Method | Description |
---|---|---|
Game.Owner |
opponent() |
|
static Game.Owner |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static Game.Owner[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Game.Owner PLAYER_1
public static final Game.Owner PLAYER_2
public static Game.Owner[] values()
for (Game.Owner c : Game.Owner.values()) System.out.println(c);
public static Game.Owner 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 Game.Owner opponent()