public enum TurtleEggCount extends Enum<TurtleEggCount>
| Enum Constant and Description |
|---|
FOUR_EGG |
ONE_EGG |
THREE_EGG |
TWO_EGG |
| Modifier and Type | Method and Description |
|---|---|
static TurtleEggCount |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TurtleEggCount[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TurtleEggCount ONE_EGG
public static final TurtleEggCount TWO_EGG
public static final TurtleEggCount THREE_EGG
public static final TurtleEggCount FOUR_EGG
public static TurtleEggCount[] values()
for (TurtleEggCount c : TurtleEggCount.values()) System.out.println(c);
public static TurtleEggCount 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 nullCopyright © 2021. All rights reserved.