public enum MeasureUnitDisplay extends Enum<MeasureUnitDisplay> implements Key
Enum Constant and Description |
---|
LONG
Long representation of unit of measure (e.g., 16 litres).
|
NARROW
Short representation of unit of measure without spaces (e.g., 16l).
|
SHORT
Short representation of unit of measure (e.g., e.g., 16 l).
|
Modifier and Type | Method and Description |
---|---|
String |
value()
Returns the name value of property
|
static MeasureUnitDisplay |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MeasureUnitDisplay[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
checkAndGetIfValid, checkIfValid, compare, create, equals, getKeyByValue, getKeyByValue, hasKeyByValue, isValid
public static final MeasureUnitDisplay LONG
public static final MeasureUnitDisplay SHORT
public static final MeasureUnitDisplay NARROW
public static MeasureUnitDisplay[] values()
for (MeasureUnitDisplay c : MeasureUnitDisplay.values()) System.out.println(c);
public static MeasureUnitDisplay 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 null