public enum EmergencyState extends Enum<EmergencyState>
| Enum Constant and Description |
|---|
DOWNED |
EMERGENCY |
HIJACK |
MEDICAL |
MINIMAL_FUEL |
NO_COMM |
NONE |
RESERVED |
| Modifier and Type | Method and Description |
|---|---|
static EmergencyState |
from(int state) |
static EmergencyState |
valueOf(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.
|
public static final EmergencyState NONE
public static final EmergencyState EMERGENCY
public static final EmergencyState MEDICAL
public static final EmergencyState MINIMAL_FUEL
public static final EmergencyState NO_COMM
public static final EmergencyState HIJACK
public static final EmergencyState DOWNED
public static final EmergencyState RESERVED
public static EmergencyState[] values()
for (EmergencyState c : EmergencyState.values()) System.out.println(c);
public static EmergencyState valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static EmergencyState from(int state)
Copyright © 2020. All rights reserved.