Enum TrafficIncidentType
Package com.here.sdk.traffic
Enum TrafficIncidentType
- java.lang.Object
-
- java.lang.Enum<TrafficIncidentType>
-
- com.here.sdk.traffic.TrafficIncidentType
-
- 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 ACCIDENTTraffic accident.CONGESTIONTraffic congestion.CONSTRUCTIONConstruction work.DISABLED_VEHICLEOverturned or broken down vehicle(s) on the road.LANE_RESTRICTIONLane restriction.MASS_TRANSITIncident involving mass transit such as rail or subway.OTHERThe incident is known but it does't fit into any of the other categories.PLANNED_EVENTIncident involving activities such as sport events or festivals.ROAD_CLOSURERoad closure.ROAD_HAZARDDangerous obstruction on the road such as downed tree or traffic light out.UNKNOWNThe incident type is not provided by the traffic incidents supplier or not recognized by HERE SDK.WEATHERAdverse weather conditions.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TrafficIncidentTypevalueOf(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.
-
-
-
Enum Constant Detail
-
ACCIDENT
public static final TrafficIncidentType ACCIDENT
Traffic accident.
-
CONGESTION
public static final TrafficIncidentType CONGESTION
Traffic congestion.
-
CONSTRUCTION
public static final TrafficIncidentType CONSTRUCTION
Construction work.
-
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.
-
WEATHER
public static final TrafficIncidentType WEATHER
Adverse weather conditions.
-
ROAD_CLOSURE
public static final TrafficIncidentType ROAD_CLOSURE
Road closure.
-
LANE_RESTRICTION
public static final TrafficIncidentType LANE_RESTRICTION
Lane restriction.
-
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 namejava.lang.NullPointerException- if the argument is null
-
-