Enum Class ETOPS
- All Implemented Interfaces:
Serializable,Comparable<ETOPS>,Constable,ComboAlias
An enumeration of ETOPS classifications.
- Since:
- 4.1
- Version:
- 10.0
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ETOPSfromCode(int code) Mechanism to calculate value from ordinal while using -1 for invalid.static ETOPSgetClassification(int range) Returns the ETOPS classification to fly a particular distance.Returns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.intgetRange()Returns the maximum single-engine range.intgetTime()Returns the single-engine operating time.static ETOPSReturns the enum constant of this class with the specified name.static ETOPS[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ETOPS60
-
ETOPS75
-
ETOPS90
-
ETOPS120
-
ETOPS138
-
ETOPS180
-
ETOPS207
-
ETOPS240
-
ETOPS330
-
INVALID
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getTime
public int getTime()Returns the single-engine operating time.- Returns:
- the time in minutes
-
getRange
public int getRange()Returns the maximum single-engine range.- Returns:
- the range in nautical miles
-
getClassification
Returns the ETOPS classification to fly a particular distance.- Parameters:
range- the range in nautical miles- Returns:
- the ETOPS classification, or null if exceeding ETOPS207
-
fromCode
Mechanism to calculate value from ordinal while using -1 for invalid.- Parameters:
code- the ETOPS ordinal, or -1 for invalid- Returns:
- an ETOPS
-
getComboAlias
Description copied from interface:ComboAliasReturns the alias to use in the HTML <OPTION> element.- Specified by:
getComboAliasin interfaceComboAlias- Returns:
- The alias for this entry
-
getComboName
Description copied from interface:ComboAliasReturns the visible name to use in the HTML <OPTION> element.- Specified by:
getComboNamein interfaceComboAlias- Returns:
- The visible name for this entry
-