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