com.azalient.apo.enums
Enum TripMode
java.lang.Object
java.lang.Enum<TripMode>
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
PEOPLE
public static final TripMode PEOPLE
TRANSPORT
public static final TripMode TRANSPORT
VEHICLE
public static final TripMode VEHICLE
MIXED
public static final TripMode MIXED
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)