com.azalient.apo.basics
Enum Distance.D_Units
java.lang.Object
java.lang.Enum<Distance.D_Units>
com.azalient.apo.basics.Distance.D_Units
- All Implemented Interfaces:
- Serializable, Comparable<Distance.D_Units>
- Enclosing class:
- Distance
public static enum Distance.D_Units
- extends Enum<Distance.D_Units>
An enumeration of possible distance units
KM
public static final Distance.D_Units KM
MI
public static final Distance.D_Units MI
FT
public static final Distance.D_Units FT
M
public static final Distance.D_Units M
values
public static Distance.D_Units[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Distance.D_Units c : Distance.D_Units.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Distance.D_Units valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
label
public String label()