public static enum AnimalData.DangerLevel extends java.lang.Enum<AnimalData.DangerLevel>
Enum Constant and Description |
---|
DANGEROUS |
EXDANGER |
LOW |
NONE |
UNDEFINED |
VENOM |
Modifier and Type | Method and Description |
---|---|
static AnimalData.DangerLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AnimalData.DangerLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnimalData.DangerLevel UNDEFINED
public static final AnimalData.DangerLevel NONE
public static final AnimalData.DangerLevel LOW
public static final AnimalData.DangerLevel DANGEROUS
public static final AnimalData.DangerLevel EXDANGER
public static final AnimalData.DangerLevel VENOM
public static AnimalData.DangerLevel[] values()
for (AnimalData.DangerLevel c : AnimalData.DangerLevel.values()) System.out.println(c);
public static AnimalData.DangerLevel 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