Enum TransitMode

  • java.lang.Object
    • java.lang.Enum<TransitMode>
      • com.here.sdk.routing.TransitMode
  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<TransitMode>

    public enum TransitMode
    extends java.lang.Enum<TransitMode>

    Public transit mode

    • Enum Constant Detail

      • HIGH_SPEED_TRAIN

        public static final TransitMode HIGH_SPEED_TRAIN

        High speed train.

      • INTERCITY_TRAIN

        public static final TransitMode INTERCITY_TRAIN

        Intercity train.

      • INTER_REGIONAL_TRAIN

        public static final TransitMode INTER_REGIONAL_TRAIN

        Inter regional train.

      • REGIONAL_TRAIN

        public static final TransitMode REGIONAL_TRAIN

        Regional train.

      • CITY_TRAIN

        public static final TransitMode CITY_TRAIN

        City train.

      • SUBWAY

        public static final TransitMode SUBWAY

        Subway.

      • LIGHT_RAIL

        public static final TransitMode LIGHT_RAIL

        Light rail.

      • PRIVATE_BUS

        public static final TransitMode PRIVATE_BUS

        Private bus.

      • INCLINED

        public static final TransitMode INCLINED

        Inclined.

      • AERIAL

        public static final TransitMode AERIAL

        Aerial.

      • BUS_RAPID

        public static final TransitMode BUS_RAPID

        Bus rapid.

      • MONORAIL

        public static final TransitMode MONORAIL

        Monorail.

      • FLIGHT

        public static final TransitMode FLIGHT

        Flight.

    • Method Detail

      • values

        public static TransitMode[] 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 (TransitMode c : TransitMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TransitMode 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