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