public static enum RabbitDisguise.RabbitType extends java.lang.Enum<RabbitDisguise.RabbitType>
Enum Constant and Description |
---|
BLACK |
BLACK_AND_WHITE |
BROWN |
GOLD |
SALT_AND_PEPPER |
THE_KILLER_BUNNY |
WHITE |
Modifier and Type | Method and Description |
---|---|
int |
getId()
Returns the associated id.
|
static RabbitDisguise.RabbitType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RabbitDisguise.RabbitType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RabbitDisguise.RabbitType BROWN
public static final RabbitDisguise.RabbitType WHITE
public static final RabbitDisguise.RabbitType BLACK
public static final RabbitDisguise.RabbitType BLACK_AND_WHITE
public static final RabbitDisguise.RabbitType GOLD
public static final RabbitDisguise.RabbitType SALT_AND_PEPPER
public static final RabbitDisguise.RabbitType THE_KILLER_BUNNY
public static RabbitDisguise.RabbitType[] values()
for (RabbitDisguise.RabbitType c : RabbitDisguise.RabbitType.values()) System.out.println(c);
public static RabbitDisguise.RabbitType 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 int getId()