public enum UnitSystem extends java.lang.Enum<UnitSystem>
| Enum Constant and Description |
|---|
IMPERIAL_UK
Feet and miles.
|
IMPERIAL_US
Yards and miles.
|
METRIC
Meters and kilometers.
|
| Modifier and Type | Method and Description |
|---|---|
static UnitSystem |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UnitSystem[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnitSystem METRIC
public static final UnitSystem IMPERIAL_UK
public static final UnitSystem IMPERIAL_US
public static UnitSystem[] values()
for (UnitSystem c : UnitSystem.values()) System.out.println(c);
public static UnitSystem 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 null