public enum IncidentType extends java.lang.Enum<IncidentType>
Enum Constant and Description |
---|
CONGESTION |
CONSTRUCTION |
EVENT |
INCIDENT |
Modifier and Type | Method and Description |
---|---|
static IncidentType |
intToType(int n) |
int |
value() |
static IncidentType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IncidentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IncidentType CONSTRUCTION
public static final IncidentType EVENT
public static final IncidentType CONGESTION
public static final IncidentType INCIDENT
public static IncidentType[] values()
for (IncidentType c : IncidentType.values()) System.out.println(c);
public static IncidentType 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 static IncidentType intToType(int n)
public int value()