public enum DensityUnits extends Enum<DensityUnits>
Java class for densityUnits.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="densityUnits">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="kgpercubicmeter"/>
<enumeration value="gramspercubicmeter"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
GRAMSPERCUBICMETER |
KGPERCUBICMETER |
| Modifier and Type | Method and Description |
|---|---|
static DensityUnits |
fromValue(String v) |
String |
value() |
static DensityUnits |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DensityUnits[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DensityUnits KGPERCUBICMETER
public static final DensityUnits GRAMSPERCUBICMETER
public static DensityUnits[] values()
for (DensityUnits c : DensityUnits.values()) System.out.println(c);
public static DensityUnits valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static DensityUnits fromValue(String v)