public enum MeasurementType extends java.lang.Enum<MeasurementType>
| Enum Constant and Description |
|---|
CENTIMETRE |
CUBIC_METRE |
FOOT |
GALLOON_UK |
GALLOON_US |
KILOGRAM |
LITRE |
MILLIGRAM |
MILLIMETRE |
POUND |
TON_METRIC |
YARD |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDisplayName() |
java.lang.String |
getValue() |
java.lang.String |
toString() |
static MeasurementType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MeasurementType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MeasurementType MILLIMETRE
public static final MeasurementType CENTIMETRE
public static final MeasurementType FOOT
public static final MeasurementType YARD
public static final MeasurementType CUBIC_METRE
public static final MeasurementType LITRE
public static final MeasurementType GALLOON_UK
public static final MeasurementType GALLOON_US
public static final MeasurementType TON_METRIC
public static final MeasurementType KILOGRAM
public static final MeasurementType MILLIGRAM
public static final MeasurementType POUND
public static MeasurementType[] values()
for (MeasurementType c : MeasurementType.values()) System.out.println(c);
public static MeasurementType 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 java.lang.String getValue()
public java.lang.String getDisplayName()
public java.lang.String toString()
toString in class java.lang.Enum<MeasurementType>