TransitMode (API Reference)
Package com.here.sdk.routing
Enum Class TransitMode
- All Implemented Interfaces:
Serializable,Comparable<TransitMode>,Constable
Public transit mode
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAerial.Bus.Bus rapid.City train.Ferry.Flight.High speed train.Inclined.Inter regional train.Intercity train.Light rail.Monorail.Private bus.Regional train.Subway. -
Method Summary
Modifier and TypeMethodDescriptionstatic TransitModeReturns the enum constant of this class with the specified name.static TransitMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
HIGH_SPEED_TRAIN
High speed train.
-
INTERCITY_TRAIN
Intercity train.
-
INTER_REGIONAL_TRAIN
Inter regional train.
-
REGIONAL_TRAIN
Regional train.
-
CITY_TRAIN
City train.
-
BUS
Bus.
-
FERRY
Ferry.
-
SUBWAY
Subway.
-
LIGHT_RAIL
Light rail.
-
PRIVATE_BUS
Private bus.
-
INCLINED
Inclined.
-
AERIAL
Aerial.
-
BUS_RAPID
Bus rapid.
-
MONORAIL
Monorail.
-
FLIGHT
Flight.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-