public enum Measurement extends java.lang.Enum<Measurement>
Enum Constant and Description |
---|
AREA
Area measurement.
|
DURATION
Duration measurement.
|
ELECTRIC_CHARGE
Electric charge measurement.
|
ELECTRIC_CURRENT
Electric current measurement.
|
ENERGY
Energy measurement.
|
LENGTH
Length measurement.
|
MASS
Mass measurement.
|
POWER
Power measurement.
|
UNITS
Units measurement.
|
VOLUME
Volume measurement.
|
Modifier and Type | Method and Description |
---|---|
static Measurement |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Measurement[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@SerializedName(value="area") public static final Measurement AREA
@SerializedName(value="duration") public static final Measurement DURATION
@SerializedName(value="electric_charge") public static final Measurement ELECTRIC_CHARGE
@SerializedName(value="electric_current") public static final Measurement ELECTRIC_CURRENT
@SerializedName(value="energy") public static final Measurement ENERGY
@SerializedName(value="length") public static final Measurement LENGTH
@SerializedName(value="mass") public static final Measurement MASS
@SerializedName(value="power") public static final Measurement POWER
@SerializedName(value="volume") public static final Measurement VOLUME
@SerializedName(value="units") public static final Measurement UNITS
public static Measurement[] values()
for (Measurement c : Measurement.values()) System.out.println(c);
public static Measurement 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 null