com.azalient.apo.enums
Enum TripMode

java.lang.Object
  extended by java.lang.Enum<TripMode>
      extended by com.azalient.apo.enums.TripMode
All Implemented Interfaces:
ITranslatable, Serializable, Comparable<TripMode>

public enum TripMode
extends Enum<TripMode>
implements ITranslatable

The primary mode of a trip, where a PEOPLE mode trip may use walking, driving or public transport


Enum Constant Summary
MIXED
           
PEOPLE
           
TRANSPORT
           
VEHICLE
           
 
Method Summary
 String brief()
           
 boolean includes(TripMode mode)
           
 String label()
           
static TripMode parse(String s)
           
 String toString()
           
 String toStringTranslated()
           
static TripMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TripMode[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PEOPLE

public static final TripMode PEOPLE

TRANSPORT

public static final TripMode TRANSPORT

VEHICLE

public static final TripMode VEHICLE

MIXED

public static final TripMode MIXED
Method Detail

values

public static TripMode[] 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 (TripMode c : TripMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TripMode 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()

brief

public String brief()

parse

public static TripMode parse(String s)

toString

public String toString()
Overrides:
toString in class Enum<TripMode>

toStringTranslated

public String toStringTranslated()
Specified by:
toStringTranslated in interface ITranslatable

includes

public boolean includes(TripMode mode)