public enum Length extends java.lang.Enum<Length> implements MeasurementUnit
Enum Constant and Description |
---|
CENTIMETER
Centimeter length.
|
METER
Meter length.
|
MILLIMETER
Millimeter length.
|
Modifier and Type | Method and Description |
---|---|
Measurement |
getMeasurementGroup()
Gets measurement group.
|
static Length |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Length[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@SerializedName(value="millimeter") public static final Length MILLIMETER
@SerializedName(value="centimeter") public static final Length CENTIMETER
@SerializedName(value="meter") public static final Length METER
public static Length[] values()
for (Length c : Length.values()) System.out.println(c);
public static Length 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 Measurement getMeasurementGroup()
MeasurementUnit
getMeasurementGroup
in interface MeasurementUnit