public enum ENERGY extends java.lang.Enum<ENERGY> implements MeasurementUnit
| Enum Constant and Description |
|---|
JOULE
Joule
|
KILOCALORIE
Calorie
|
KILOJOULE
Kilojoule energy.
|
MEGAJOULE
Megajoule energy.
|
MILLIJOULE
Millijoule energy.
|
QUAD
Quad energy.
|
THERMIE
Thermie energy.
|
| Modifier and Type | Method and Description |
|---|---|
Measurement |
getMeasurementGroup()
Gets measurement group.
|
static ENERGY |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ENERGY[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@SerializedName(value="joule") public static final ENERGY JOULE
@SerializedName(value="millijoule") public static final ENERGY MILLIJOULE
@SerializedName(value="kilojoule") public static final ENERGY KILOJOULE
@SerializedName(value="megajoule") public static final ENERGY MEGAJOULE
@SerializedName(value="quad") public static final ENERGY QUAD
@SerializedName(value="thermie") public static final ENERGY THERMIE
@SerializedName(value="kilocalorie") public static final ENERGY KILOCALORIE
public static ENERGY[] values()
for (ENERGY c : ENERGY.values()) System.out.println(c);
public static ENERGY 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()
MeasurementUnitgetMeasurementGroup in interface MeasurementUnit