public enum HorseMarking extends Enum<HorseMarking>
Enum Constant and Description |
---|
BLACK_DOTS |
NONE |
WHITE |
WHITE_DOTS |
WHITE_FIELD |
Modifier and Type | Field and Description |
---|---|
private int |
index |
private static HorseMarking[] |
VALUES |
Modifier and Type | Method and Description |
---|---|
static HorseMarking |
byIndex(int index) |
int |
getIndex() |
static HorseMarking |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HorseMarking[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HorseMarking NONE
public static final HorseMarking WHITE
public static final HorseMarking WHITE_FIELD
public static final HorseMarking WHITE_DOTS
public static final HorseMarking BLACK_DOTS
private static final HorseMarking[] VALUES
private final int index
public static HorseMarking[] values()
for (HorseMarking c : HorseMarking.values()) System.out.println(c);
public static HorseMarking valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getIndex()
public static HorseMarking byIndex(int index)