Enum Class Simulator

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

public enum Simulator extends Enum<Simulator> implements ComboAlias
An enumeration of Simulator versions.
Since:
5.1
Version:
11.4
Author:
Luke
  • Enum Constant Details

  • Method Details

    • values

      public static Simulator[] 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 Simulator 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
    • getCode

      public int getCode()
      Returns the numeric simulator code.
      Returns:
      the code
    • getName

      public String getName()
      Returns the simulator name.
      Returns:
      the 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
    • fromVersion

      public static Simulator fromVersion(int code, Simulator defaultSim)
      Converts a version code to a Simulator.
      Parameters:
      code - the version code
      defaultSim - the default to return
      Returns:
      a Simulator
    • fromName

      public static Simulator fromName(String name, Simulator defaultSim)
      Exception-swallowing way to parse a simulator name.
      Parameters:
      name - the simulator name
      defaultSim - the default to return
      Returns:
      a Simulator