Enum VehicleType

java.lang.Object
java.lang.Enum<VehicleType>
ai.nextbillion.maps.model.VehicleType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<VehicleType>, java.lang.constant.Constable

public enum VehicleType
extends java.lang.Enum<VehicleType>
The vehicle types.

See Vehicle Type for more detail.

  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
  • Enum Constant Summary

    Enum Constants 
    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.
  • Method Summary

    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.

    Methods inherited from class java.lang.Enum

    clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Method Details

    • values

      public static VehicleType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static VehicleType 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 name
      java.lang.NullPointerException - if the argument is null