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