public static enum Ingredient.Unit extends Enum<Ingredient.Unit>
Enum Constant and Description |
---|
C |
DASH |
GAL |
LB |
OTHER |
OZ |
PT |
QT |
TBSP |
TSP |
Modifier and Type | Method and Description |
---|---|
static String |
toString(Ingredient.Unit value) |
static Ingredient.Unit |
toUnit(String value)
This converter essentially replaces common spelling with abbreviated measurement names (i.e.
|
static Ingredient.Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Ingredient.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Ingredient.Unit DASH
public static final Ingredient.Unit TSP
public static final Ingredient.Unit TBSP
public static final Ingredient.Unit C
public static final Ingredient.Unit PT
public static final Ingredient.Unit QT
public static final Ingredient.Unit GAL
public static final Ingredient.Unit OZ
public static final Ingredient.Unit LB
public static final Ingredient.Unit OTHER
public static Ingredient.Unit[] values()
for (Ingredient.Unit c : Ingredient.Unit.values()) System.out.println(c);
public static Ingredient.Unit 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 nullpublic static String toString(Ingredient.Unit value)
value
- is a Unit Enumpublic static Ingredient.Unit toUnit(String value)
value
- is a String Unit