com.azalient.api.b.parameters
Enum IIncident.Cause
java.lang.Object
java.lang.Enum<IIncident.Cause>
com.azalient.api.b.parameters.IIncident.Cause
- All Implemented Interfaces:
- Serializable, Comparable<IIncident.Cause>
- Enclosing interface:
- IIncident
public static enum IIncident.Cause
- extends Enum<IIncident.Cause>
An enumeration of causes for an incident
|
Method Summary |
static IIncident.Cause |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static IIncident.Cause[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
BREAKDOWN
public static final IIncident.Cause BREAKDOWN
ACCIDENT
public static final IIncident.Cause ACCIDENT
OTHER
public static final IIncident.Cause OTHER
values
public static IIncident.Cause[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (IIncident.Cause c : IIncident.Cause.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static IIncident.Cause valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null