Enum Class SerializedDataVersion
- All Implemented Interfaces:
- Serializable,- Comparable<SerializedDataVersion>,- Constable
An enumeration to store serialized ACARS position data version information.
- Since:
- 4.1
- Version:
- 11.5
- Author:
- Luke
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier and TypeMethodDescriptionbooleanMore legible compare operation.static SerializedDataVersionfromCode(int code) Exception-safe lookup method.intReturns the version number.booleanisXACARS()Returns whether this is an XACARS-generated data stream.static SerializedDataVersionReturns 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
- 
ACARSv93
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
getVersionpublic int getVersion()Returns the version number.- Returns:
- the version
 
- 
isXACARSpublic boolean isXACARS()Returns whether this is an XACARS-generated data stream.- Returns:
- TRUE if created by XACARS, otherwise FALSE
 
- 
fromCodeException-safe lookup method.- Parameters:
- code- the ordinal code, or -1 for unknown
- Returns:
- a SerializedDataVersion, or null
 
- 
atLeastMore 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
 
 
-