public enum VolumeUnitType extends Enum<VolumeUnitType>
Java class for VolumeUnitType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="VolumeUnitType"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="Cubic Meter"/> <enumeration value="Liter"/> <enumeration value="Cubic Foot"/> <enumeration value="Gallon (US Fluid)"/> </restriction> </simpleType>
Enum Constant and Description |
---|
CUBIC_FOOT |
CUBIC_METER |
GALLON_US_FLUID |
LITER |
Modifier and Type | Method and Description |
---|---|
static VolumeUnitType |
fromValue(String v) |
String |
value() |
static VolumeUnitType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VolumeUnitType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VolumeUnitType CUBIC_METER
public static final VolumeUnitType LITER
public static final VolumeUnitType CUBIC_FOOT
public static final VolumeUnitType GALLON_US_FLUID
public static VolumeUnitType[] values()
for (VolumeUnitType c : VolumeUnitType.values()) System.out.println(c);
public static VolumeUnitType 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 VolumeUnitType fromValue(String v)
Copyright © 2018 JBoss by Red Hat. All rights reserved.