Enum Constant and Description |
---|
LEFT_SIDE
We play from left to right
|
RIGHT_SIDE
We play from right to left
|
UNKNOWN
No, or unknown play side
|
Modifier and Type | Method and Description |
---|---|
static PlaySide |
parsePlaySide(java.lang.String playSideString)
Convert a play side into an enum
|
static PlaySide |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PlaySide[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PlaySide LEFT_SIDE
public static final PlaySide RIGHT_SIDE
public static final PlaySide UNKNOWN
public static PlaySide[] values()
for (PlaySide c : PlaySide.values()) System.out.println(c);
public static PlaySide 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 static PlaySide parsePlaySide(java.lang.String playSideString)
playSideString
- Play side string