public enum TrafficSeverity extends java.lang.Enum<TrafficSeverity>
Modifier and Type | Method and Description |
---|---|
static TrafficSeverity |
byStringValue(java.lang.String value) |
java.lang.String |
getSeverity() |
static TrafficSeverity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TrafficSeverity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TrafficSeverity GREEN
public static final TrafficSeverity YELLOW
public static final TrafficSeverity RED
public static final TrafficSeverity BLACK
public static TrafficSeverity[] values()
for (TrafficSeverity c : TrafficSeverity.values()) System.out.println(c);
public static TrafficSeverity 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 getSeverity()
public static TrafficSeverity byStringValue(java.lang.String value)