public enum EnumBerryFlavor extends java.lang.Enum<EnumBerryFlavor>
Modifier and Type | Method and Description |
---|---|
static EnumBerryFlavor |
berryFromOrdinal(int ordinal) |
java.lang.String |
getLocalizedName() |
static int |
getOrdinalFromBerry(java.lang.String berry) |
static EnumBerryFlavor |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumBerryFlavor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumBerryFlavor SPICY
public static final EnumBerryFlavor DRY
public static final EnumBerryFlavor SWEET
public static final EnumBerryFlavor BITTER
public static final EnumBerryFlavor SOUR
public static final EnumBerryFlavor NONE
public static EnumBerryFlavor[] values()
for (EnumBerryFlavor c : EnumBerryFlavor.values()) System.out.println(c);
public static EnumBerryFlavor 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 nullpublic static EnumBerryFlavor berryFromOrdinal(int ordinal)
public java.lang.String getLocalizedName()
public static int getOrdinalFromBerry(java.lang.String berry)