Enum VehicleType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<VehicleType>

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

    See Vehicle Type for more detail.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      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, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

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

      • METRO_RAIL

        public static final VehicleType METRO_RAIL
        Light rail transit.
      • SUBWAY

        public static final VehicleType SUBWAY
        Underground light rail.
      • TRAM

        public static final VehicleType TRAM
        Above ground light rail.
      • MONORAIL

        public static final VehicleType MONORAIL
        Monorail.
      • HEAVY_RAIL

        public static final VehicleType HEAVY_RAIL
        Heavy rail.
      • COMMUTER_TRAIN

        public static final VehicleType COMMUTER_TRAIN
        Commuter rail.
      • HIGH_SPEED_TRAIN

        public static final VehicleType HIGH_SPEED_TRAIN
        High speed train.
      • LONG_DISTANCE_TRAIN

        public static final VehicleType LONG_DISTANCE_TRAIN
        Long distance train.
      • INTERCITY_BUS

        public static final VehicleType INTERCITY_BUS
        Intercity bus.
      • TROLLEYBUS

        public static final VehicleType TROLLEYBUS
        Trolleybus.
      • SHARE_TAXI

        public static final VehicleType SHARE_TAXI
        Share taxi is a kind of bus with the ability to drop off and pick up passengers anywhere on its route.
      • CABLE_CAR

        public static final VehicleType CABLE_CAR
        A vehicle that operates on a cable, usually on the ground. Aerial cable cars may be of the type GONDOLA_LIFT.
      • GONDOLA_LIFT

        public static final VehicleType GONDOLA_LIFT
        An aerial cable car.
      • FUNICULAR

        public static final VehicleType FUNICULAR
        A vehicle that is pulled up a steep incline by a cable. A Funicular typically consists of two cars, with each car acting as a counterweight for the other.
      • OTHER

        public static final VehicleType OTHER
        All other vehicles will return this type.
    • Method Detail

      • values

        public static VehicleType[] 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 (VehicleType c : VehicleType.values())
            System.out.println(c);
        
        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