public enum TrafficStatusEnum extends java.lang.Enum<TrafficStatusEnum>
Java class for TrafficStatusEnum.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="TrafficStatusEnum"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="impossible"/> <enumeration value="congested"/> <enumeration value="heavy"/> <enumeration value="freeFlow"/> <enumeration value="unknown"/> </restriction> </simpleType>
Enum Constant and Description |
---|
CONGESTED
Traffic in the specified direction is congested making driving very slow and difficult.
|
FREE_FLOW
Traffic in the specified direction is free flowing.
|
HEAVY
Traffic in the specified direction is heavier than usual making driving conditions more difficult than normal.
|
IMPOSSIBLE
Traffic in the specified direction is completely congested, effectively at a standstill, making driving impossible.
|
UNKNOWN
Traffic conditions are unknown.
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
value |
Modifier and Type | Method and Description |
---|---|
static TrafficStatusEnum |
fromValue(java.lang.String v) |
java.lang.String |
value() |
static TrafficStatusEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TrafficStatusEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrafficStatusEnum IMPOSSIBLE
public static final TrafficStatusEnum CONGESTED
public static final TrafficStatusEnum HEAVY
public static final TrafficStatusEnum FREE_FLOW
public static final TrafficStatusEnum UNKNOWN
public static TrafficStatusEnum[] values()
for (TrafficStatusEnum c : TrafficStatusEnum.values()) System.out.println(c);
public static TrafficStatusEnum valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String value()
public static TrafficStatusEnum fromValue(java.lang.String v)