public enum Mass extends java.lang.Enum<Mass> implements MeasurementUnit
Enum Constant and Description |
---|
CARATS
Carats mass.
|
CENTIGRAMS
Centigrams mass.
|
DECIGRAMS
Decigrams mass.
|
GRAMS
Grams mass.
|
KILOGRAMS
Kilograms mass.
|
METRIC_TONS
Metric tons mass.
|
MICROGRAMS
Micrograms mass.
|
MILLIGRAMS
Milligrams mass.
|
NANOGRAMS
Nanograms mass.
|
OUNCES
Ounces mass.
|
OUNCES_TROY
Ounces troy mass.
|
PICOGRAMS
Picograms mass.
|
POUNDS
Pounds mass.
|
SHORT_TONS
Short tons mass.
|
SLUGS
Slugs mass.
|
STONES
Stones mass.
|
Modifier and Type | Method and Description |
---|---|
Measurement |
getMeasurementGroup()
Gets measurement group.
|
static Mass |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Mass[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@SerializedName(value="picograms") public static final Mass PICOGRAMS
@SerializedName(value="nanograms") public static final Mass NANOGRAMS
@SerializedName(value="micrograms") public static final Mass MICROGRAMS
@SerializedName(value="milligrams") public static final Mass MILLIGRAMS
@SerializedName(value="centigrams") public static final Mass CENTIGRAMS
@SerializedName(value="decigrams") public static final Mass DECIGRAMS
@SerializedName(value="grams") public static final Mass GRAMS
@SerializedName(value="kilograms") public static final Mass KILOGRAMS
@SerializedName(value="ounces") public static final Mass OUNCES
@SerializedName(value="pounds") public static final Mass POUNDS
@SerializedName(value="stones") public static final Mass STONES
@SerializedName(value="metric_tons") public static final Mass METRIC_TONS
@SerializedName(value="short_tons") public static final Mass SHORT_TONS
@SerializedName(value="carats") public static final Mass CARATS
@SerializedName(value="ounces_troy") public static final Mass OUNCES_TROY
@SerializedName(value="slugs") public static final Mass SLUGS
public static Mass[] values()
for (Mass c : Mass.values()) System.out.println(c);
public static Mass 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