Enum Class FuelTank
- All Implemented Interfaces:
Serializable, Comparable<FuelTank>, Constable, ComboAlias
An enumeration to store MS Flight Simulator Fuel Tank codes.
- Since:
- 2.0
- Version:
- 7.2
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionintcode()Returns the tank code.static FuelTankRetreives a Fuel Tank by name.Returns the alias to use in the HTML <OPTION> element.Returns the visible name to use in the HTML <OPTION> element.getName()Returns the tank name.static FuelTankReturns the enum constant of this class with the specified name.static FuelTank[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CENTER
-
CENTER_2
-
CENTER_3
-
LEFT_MAIN
-
LEFT_AUX
-
LEFT_TIP
-
RIGHT_MAIN
-
RIGHT_AUX
-
RIGHT_TIP
-
EXTERNAL
-
EXTERNAL_2
-
-
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
-
code
public int code()Returns the tank code.- Returns:
- the code
-
getName
-
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
-
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
-
get
-