public enum RabbitType extends Enum<RabbitType>
Enum Constant and Description |
---|
BLACK |
BROWN |
GOLD |
KILLER_RABBIT |
SALT_AND_PEPPER |
WHITE |
WHITE_AND_BLACK |
Modifier and Type | Method and Description |
---|---|
int |
asInt()
Returns the
int value of the RabbitType |
static int |
asInt(RabbitType rabbitType)
Returns the
int value of the RabbitType |
static RabbitType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RabbitType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RabbitType BROWN
public static final RabbitType WHITE
public static final RabbitType BLACK
public static final RabbitType WHITE_AND_BLACK
public static final RabbitType GOLD
public static final RabbitType SALT_AND_PEPPER
public static final RabbitType KILLER_RABBIT
public static RabbitType[] values()
for (RabbitType c : RabbitType.values()) System.out.println(c);
public static RabbitType 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 static int asInt(RabbitType rabbitType)
int
value of the RabbitTyperabbitType
- RabbitTypeint
value of the RabbitTypepublic int asInt()
int
value of the RabbitTypeint
value of the RabbitTypeCopyright © 2016. All rights reserved.