Package org.deltava.beans.acars
Enum Class SerializedDataVersion
- All Implemented Interfaces:
Serializable
,Comparable<SerializedDataVersion>
,Constable
An enumeration to store serialized ACARS position data version information.
- Since:
- 4.1
- Version:
- 10.5
- Author:
- Luke
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
More legible compare operation.static SerializedDataVersion
fromCode
(int code) Exception-safe lookup method.int
Returns the version number.boolean
isXACARS()
Returns whether this is an XACARS-generated data stream.static SerializedDataVersion
Returns the enum constant of this class with the specified name.static SerializedDataVersion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ACARS
-
XACARS
-
ACARSv2
-
ACARSv3
-
ACARSv4
-
ACARSv41
-
ACARSv5
-
ACARSv6
-
ACARSv7
-
ACARSv8
-
ACARSv9
-
ACARSv91
-
ACARSv92
-
-
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
-
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
Exception-safe lookup method.- Parameters:
code
- the ordinal code, or -1 for unknown- Returns:
- a SerializedDataVersion, or null
-
atLeast
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
-