Enum TrafficIncidentType

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

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

    Category of a traffic incident.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ACCIDENT
      Traffic accident.
      CONGESTION
      Traffic congestion.
      CONSTRUCTION
      Construction work.
      DISABLED_VEHICLE
      Overturned or broken down vehicle(s) on the road.
      LANE_RESTRICTION
      Lane restriction.
      MASS_TRANSIT
      Incident involving mass transit such as rail or subway.
      OTHER
      The incident is known but it does't fit into any of the other categories.
      PLANNED_EVENT
      Incident involving activities such as sport events or festivals.
      ROAD_CLOSURE
      Road closure.
      ROAD_HAZARD
      Dangerous obstruction on the road such as downed tree or traffic light out.
      UNKNOWN
      The incident type is not provided by the traffic incidents supplier or not recognized by HERE SDK.
      WEATHER
      Adverse weather conditions.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static TrafficIncidentType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static TrafficIncidentType[] 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

      • DISABLED_VEHICLE

        public static final TrafficIncidentType DISABLED_VEHICLE

        Overturned or broken down vehicle(s) on the road.

      • MASS_TRANSIT

        public static final TrafficIncidentType MASS_TRANSIT

        Incident involving mass transit such as rail or subway.

      • PLANNED_EVENT

        public static final TrafficIncidentType PLANNED_EVENT

        Incident involving activities such as sport events or festivals.

      • ROAD_HAZARD

        public static final TrafficIncidentType ROAD_HAZARD

        Dangerous obstruction on the road such as downed tree or traffic light out.

      • OTHER

        public static final TrafficIncidentType OTHER

        The incident is known but it does't fit into any of the other categories.

      • UNKNOWN

        public static final TrafficIncidentType UNKNOWN

        The incident type is not provided by the traffic incidents supplier or not recognized by HERE SDK.

    • Method Detail

      • values

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

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