Package aero.t2s.modes.constants
Enum EmergencyState
- java.lang.Object
-
- java.lang.Enum<EmergencyState>
-
- aero.t2s.modes.constants.EmergencyState
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EmergencyState>
public enum EmergencyState extends java.lang.Enum<EmergencyState>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EmergencyStatefrom(int state)static EmergencyStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EmergencyState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final EmergencyState NONE
-
EMERGENCY
public static final EmergencyState EMERGENCY
-
MEDICAL
public static final EmergencyState MEDICAL
-
MINIMAL_FUEL
public static final EmergencyState MINIMAL_FUEL
-
NO_COMM
public static final EmergencyState NO_COMM
-
HIJACK
public static final EmergencyState HIJACK
-
DOWNED
public static final EmergencyState DOWNED
-
RESERVED
public static final EmergencyState RESERVED
-
-
Method Detail
-
values
public static EmergencyState[] 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 (EmergencyState c : EmergencyState.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EmergencyState valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
from
public static EmergencyState from(int state)
-
-