Enum TransitMode
Package com.here.sdk.routing
Enum TransitMode
- java.lang.Object
-
- java.lang.Enum<TransitMode>
-
- com.here.sdk.routing.TransitMode
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<TransitMode>
public enum TransitMode extends java.lang.Enum<TransitMode>
Public transit mode
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AERIALAerial.BUSBus.BUS_RAPIDBus rapid.CITY_TRAINCity train.FERRYFerry.FLIGHTFlight.HIGH_SPEED_TRAINHigh speed train.INCLINEDInclined.INTER_REGIONAL_TRAINInter regional train.INTERCITY_TRAINIntercity train.LIGHT_RAILLight rail.MONORAILMonorail.PRIVATE_BUSPrivate bus.REGIONAL_TRAINRegional train.SUBWAYSubway.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TransitModevalueOf(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.
-
-
-
Enum Constant Detail
-
HIGH_SPEED_TRAIN
public static final TransitMode HIGH_SPEED_TRAIN
High speed train.
-
INTERCITY_TRAIN
public static final TransitMode INTERCITY_TRAIN
Intercity train.
-
INTER_REGIONAL_TRAIN
public static final TransitMode INTER_REGIONAL_TRAIN
Inter regional train.
-
REGIONAL_TRAIN
public static final TransitMode REGIONAL_TRAIN
Regional train.
-
CITY_TRAIN
public static final TransitMode CITY_TRAIN
City train.
-
BUS
public static final TransitMode BUS
Bus.
-
FERRY
public static final TransitMode FERRY
Ferry.
-
SUBWAY
public static final TransitMode SUBWAY
Subway.
-
LIGHT_RAIL
public static final TransitMode LIGHT_RAIL
Light rail.
-
PRIVATE_BUS
public static final TransitMode PRIVATE_BUS
Private bus.
-
INCLINED
public static final TransitMode INCLINED
Inclined.
-
AERIAL
public static final TransitMode AERIAL
Aerial.
-
BUS_RAPID
public static final TransitMode BUS_RAPID
Bus rapid.
-
MONORAIL
public static final TransitMode MONORAIL
Monorail.
-
FLIGHT
public static final TransitMode FLIGHT
Flight.
-
-
Method Detail
-
values
public static TransitMode[] 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 (TransitMode c : TransitMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransitMode valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-