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