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