Enum Constant and Description |
---|
CENTIMETERS |
DECIMAL_DEGREES |
DECIMETERS |
FEET |
INCHES |
KILOMETERS |
METERS |
MILES |
MILLIMETERS |
NAUTICAL_MILES |
NOT_SET |
POINTS |
UNKNOWN |
YARDS |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
static Units |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Units[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Units NOT_SET
public static final Units CENTIMETERS
public static final Units DECIMAL_DEGREES
public static final Units DECIMETERS
public static final Units FEET
public static final Units INCHES
public static final Units KILOMETERS
public static final Units METERS
public static final Units MILES
public static final Units MILLIMETERS
public static final Units NAUTICAL_MILES
public static final Units POINTS
public static final Units UNKNOWN
public static final Units YARDS
public static Units[] values()
for (Units c : Units.values()) System.out.println(c);
public static Units 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 java.lang.String getValue()