public enum IncidentMagnitude extends java.lang.Enum<IncidentMagnitude>
Enum Constant and Description |
---|
MAJOR |
MINOR |
MODERATE |
UNDEFINED |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static IncidentMagnitude |
fromInt(int value) |
int |
getValue() |
static IncidentMagnitude |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IncidentMagnitude[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IncidentMagnitude UNKNOWN
public static final IncidentMagnitude MINOR
public static final IncidentMagnitude MODERATE
public static final IncidentMagnitude MAJOR
public static final IncidentMagnitude UNDEFINED
public static IncidentMagnitude[] values()
for (IncidentMagnitude c : IncidentMagnitude.values()) System.out.println(c);
public static IncidentMagnitude 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 int getValue()
public static IncidentMagnitude fromInt(int value)