Enum Class SerializedDataVersion

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

public enum SerializedDataVersion extends Enum<SerializedDataVersion>
An enumeration to store serialized ACARS position data version information.
Since:
4.1
Version:
11.5
Author:
Luke
  • Enum Constant Details

  • Method Details

    • values

      public static SerializedDataVersion[] 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 SerializedDataVersion 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
    • getVersion

      public int getVersion()
      Returns the version number.
      Returns:
      the version
    • isXACARS

      public boolean isXACARS()
      Returns whether this is an XACARS-generated data stream.
      Returns:
      TRUE if created by XACARS, otherwise FALSE
    • fromCode

      public static SerializedDataVersion fromCode(int code)
      Exception-safe lookup method.
      Parameters:
      code - the ordinal code, or -1 for unknown
      Returns:
      a SerializedDataVersion, or null
    • atLeast

      public boolean atLeast(SerializedDataVersion v)
      More legible compare operation. Checks if this version is equal to or newer than a specific version.
      Parameters:
      v - a minimum SerializedDataVersion
      Returns:
      TRUE if the equal or greater, otherwise FALSE