public enum TransitMode extends java.lang.Enum<TransitMode>
TransitOptions
.Enum Constant and Description |
---|
BUS
Specifies bus as a preferred mode of transit.
|
RAIL
Specifies rail as a preferred mode of transit.
|
SUBWAY
Specifies subway as a preferred mode of transit.
|
TRAIN
Specifies train as a preferred mode of transit.
|
TRAM
Specifies tram as a preferred mode of transit.
|
Modifier and Type | Method and Description |
---|---|
static TransitMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransitMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransitMode BUS
public static final TransitMode RAIL
public static final TransitMode SUBWAY
public static final TransitMode TRAIN
public static final TransitMode TRAM
public static TransitMode[] values()
for (TransitMode c : TransitMode.values()) System.out.println(c);
public static TransitMode 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