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