Package fi.moprim.tmd.sdk.model
Enum Mode
- java.lang.Object
-
- java.lang.Enum<Mode>
-
- fi.moprim.tmd.sdk.model.Mode
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModefromString(java.lang.String value)java.lang.StringgetRootMode()ModegetTrueMode()booleanisMobility()booleanisMotorized()booleanisNonMotorized()booleanisPedestrian()booleanisPublicTransport()booleanisStationary()booleanisStationary(boolean includeIdle)booleanisUnknown()booleanstartsWith(Mode mode)java.lang.StringtoString()static ModevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Mode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AIR
public static final Mode AIR
-
ANY
public static final Mode ANY
-
BICYCLE
public static final Mode BICYCLE
-
BUS
public static final Mode BUS
-
CABLE
public static final Mode CABLE
-
CAR
public static final Mode CAR
-
CROSS_COUNTRY_SKIING
public static final Mode CROSS_COUNTRY_SKIING
-
DOWNHILL_SKIING
public static final Mode DOWNHILL_SKIING
-
SNOWBOARD
public static final Mode SNOWBOARD
-
E_BICYCLE
public static final Mode E_BICYCLE
-
E_CAR
public static final Mode E_CAR
-
ELEVATOR
public static final Mode ELEVATOR
-
ESCALATOR
public static final Mode ESCALATOR
-
E_SCOOTER
public static final Mode E_SCOOTER
-
FERRY
public static final Mode FERRY
-
ICE
public static final Mode ICE
-
ICE_SKATE
public static final Mode ICE_SKATE
-
IDLE
public static final Mode IDLE
-
IGNORE
public static final Mode IGNORE
-
KICKSCOOTER
public static final Mode KICKSCOOTER
-
METRO
public static final Mode METRO
-
MISSING
public static final Mode MISSING
-
MOTORBIKE
public static final Mode MOTORBIKE
-
MOTORBOAT
public static final Mode MOTORBOAT
-
MOTORIZED
public static final Mode MOTORIZED
-
MULTIPLE
public static final Mode MULTIPLE
-
MOTORIZED_WATER
public static final Mode MOTORIZED_WATER
-
NON_MOTORIZED
public static final Mode NON_MOTORIZED
-
NON_MOTORIZED_WATER
public static final Mode NON_MOTORIZED_WATER
-
NOT_FOUND
public static final Mode NOT_FOUND
-
PEDESTRIAN
public static final Mode PEDESTRIAN
-
PLANE
public static final Mode PLANE
-
PRAM
public static final Mode PRAM
-
RAIL
public static final Mode RAIL
-
ROAD
public static final Mode ROAD
-
ROWBOAT
public static final Mode ROWBOAT
-
RUN
public static final Mode RUN
-
SAILBOAT
public static final Mode SAILBOAT
-
SCOOTER
public static final Mode SCOOTER
-
SKATE
public static final Mode SKATE
-
SKATEBOARD
public static final Mode SKATEBOARD
-
SNOW
public static final Mode SNOW
-
STAIRS
public static final Mode STAIRS
-
STATIONARY
public static final Mode STATIONARY
-
TRAIN
public static final Mode TRAIN
-
TRAM
public static final Mode TRAM
-
UNKNOWN
public static final Mode UNKNOWN
-
WALK
public static final Mode WALK
-
WHEELCHAIR
public static final Mode WHEELCHAIR
-
-
Method Detail
-
values
public static Mode[] 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 (Mode c : Mode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Mode 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
-
toString
@NonNull public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<Mode>
-
getRootMode
@NonNull public java.lang.String getRootMode()
-
isStationary
public boolean isStationary(boolean includeIdle)
-
isStationary
public boolean isStationary()
-
isUnknown
public boolean isUnknown()
-
isMotorized
public boolean isMotorized()
-
isNonMotorized
public boolean isNonMotorized()
-
isMobility
public boolean isMobility()
-
isPedestrian
public boolean isPedestrian()
-
isPublicTransport
public boolean isPublicTransport()
-
fromString
@NonNull public static Mode fromString(java.lang.String value)
-
getTrueMode
@NonNull public Mode getTrueMode()
-
startsWith
public boolean startsWith(Mode mode)
-
-