java.io.Serializable
, java.lang.Comparable<VehicleType>
public enum VehicleType extends java.lang.Enum<VehicleType>
See Vehicle Type for more detail.
Enum Constant | Description |
---|---|
BUS |
Bus.
|
CABLE_CAR |
A vehicle that operates on a cable, usually on the ground.
|
COMMUTER_TRAIN |
Commuter rail.
|
FERRY |
Ferry.
|
FUNICULAR |
A vehicle that is pulled up a steep incline by a cable.
|
GONDOLA_LIFT |
An aerial cable car.
|
HEAVY_RAIL |
Heavy rail.
|
HIGH_SPEED_TRAIN |
High speed train.
|
INTERCITY_BUS |
Intercity bus.
|
METRO_RAIL |
Light rail transit.
|
MONORAIL |
Monorail.
|
OTHER |
All other vehicles will return this type.
|
RAIL |
Rail.
|
SHARE_TAXI |
Share taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its
route.
|
SUBWAY |
Underground light rail.
|
TRAM |
Above ground light rail.
|
TROLLEYBUS |
Trolleybus.
|
Modifier and Type | Method | Description |
---|---|---|
static VehicleType |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static VehicleType[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final VehicleType RAIL
public static final VehicleType METRO_RAIL
public static final VehicleType SUBWAY
public static final VehicleType TRAM
public static final VehicleType MONORAIL
public static final VehicleType HEAVY_RAIL
public static final VehicleType COMMUTER_TRAIN
public static final VehicleType HIGH_SPEED_TRAIN
public static final VehicleType BUS
public static final VehicleType INTERCITY_BUS
public static final VehicleType TROLLEYBUS
public static final VehicleType SHARE_TAXI
public static final VehicleType FERRY
public static final VehicleType CABLE_CAR
GONDOLA_LIFT
.public static final VehicleType GONDOLA_LIFT
public static final VehicleType FUNICULAR
public static final VehicleType OTHER
public static VehicleType[] values()
for (VehicleType c : VehicleType.values()) System.out.println(c);
public static VehicleType 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