com.azalient.apo.basics
Enum Distance.D_Units

java.lang.Object
  extended by java.lang.Enum<Distance.D_Units>
      extended by 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


Enum Constant Summary
FT
           
KM
           
M
           
MI
           
 
Method Summary
 String label()
           
static Distance.D_Units valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Distance.D_Units[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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()