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