Enum Class FuelTank

java.lang.Object
java.lang.Enum<FuelTank>
org.deltava.beans.schedule.FuelTank
All Implemented Interfaces:
Serializable, Comparable<FuelTank>, Constable, ComboAlias

public enum FuelTank extends Enum<FuelTank> implements ComboAlias
An enumeration to store MS Flight Simulator Fuel Tank codes.
Since:
2.0
Version:
7.2
Author:
Luke
  • Enum Constant Details

    • CENTER

      public static final FuelTank CENTER
    • CENTER_2

      public static final FuelTank CENTER_2
    • CENTER_3

      public static final FuelTank CENTER_3
    • LEFT_MAIN

      public static final FuelTank LEFT_MAIN
    • LEFT_AUX

      public static final FuelTank LEFT_AUX
    • LEFT_TIP

      public static final FuelTank LEFT_TIP
    • RIGHT_MAIN

      public static final FuelTank RIGHT_MAIN
    • RIGHT_AUX

      public static final FuelTank RIGHT_AUX
    • RIGHT_TIP

      public static final FuelTank RIGHT_TIP
    • EXTERNAL

      public static final FuelTank EXTERNAL
    • EXTERNAL_2

      public static final FuelTank EXTERNAL_2
  • Method Details

    • values

      public static FuelTank[] 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

      public static FuelTank valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • code

      public int code()
      Returns the tank code.
      Returns:
      the code
    • getName

      public String getName()
      Returns the tank name.
      Returns:
      the tank name
    • getComboName

      public String getComboName()
      Description copied from interface: ComboAlias
      Returns the visible name to use in the HTML <OPTION> element.
      Specified by:
      getComboName in interface ComboAlias
      Returns:
      The visible name for this entry
    • getComboAlias

      public String getComboAlias()
      Description copied from interface: ComboAlias
      Returns the alias to use in the HTML <OPTION> element.
      Specified by:
      getComboAlias in interface ComboAlias
      Returns:
      The alias for this entry
    • get

      public static FuelTank get(String s)
      Retreives a Fuel Tank by name.
      Parameters:
      s - the name
      Returns:
      a FuelTank