public enum IncidentMagnitude extends java.lang.Enum<IncidentMagnitude>
Enum Constant and Description |
---|
MAJOR
Delay from the incident is major.
|
MINOR
Delay from the incident is minor.
|
MODERATE
Delay from the incident is moderate.
|
UNDEFINED
Delay from the incident is undefined.
|
UNKNOWN
There is an unknown type of delay.
|
Modifier and Type | Method and Description |
---|---|
static IncidentMagnitude |
fromInt(int value)
Static method used to search trough enum and retrieve incident magnitude based on passed value.
|
int |
getValue()
Getter of the current incident magnitude used in
fromInt(int)
for searching purposes. |
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()
fromInt(int)
for searching purposes.@NonNull public static IncidentMagnitude fromInt(int value)
IncidentMagnitude
is returned, otherwise IllegalArgumentException
is thrown.Value
- passed that is going to be searched in enum.