Class ClientInfo

java.lang.Object
org.deltava.beans.acars.ClientInfo
All Implemented Interfaces:
Serializable, Comparable<ClientVersion>, ClientVersion

public class ClientInfo extends Object implements ClientVersion, Comparable<ClientVersion>, Serializable
A bean to store ACARS client versions.
Since:
4.1
Version:
11.0
Author:
Luke
See Also:
  • Constructor Details

    • ClientInfo

      public ClientInfo(int version, int build)
      Creates a new client information bean.
      Parameters:
      version - the version number
      build - the build number
    • ClientInfo

      public ClientInfo(int version, int build, int beta)
      Creates a new client information bean.
      Parameters:
      version - the version number
      build - the build number
      beta - the beta number
  • Method Details

    • getVersion

      public int getVersion()
      Description copied from interface: ClientVersion
      Returns the version number.
      Specified by:
      getVersion in interface ClientVersion
      Returns:
      the version
    • getClientBuild

      public int getClientBuild()
      Description copied from interface: ClientVersion
      Returns the build number.
      Specified by:
      getClientBuild in interface ClientVersion
      Returns:
      the build
    • getBeta

      public int getBeta()
      Description copied from interface: ClientVersion
      Returns the beta version.
      Specified by:
      getBeta in interface ClientVersion
      Returns:
      the beta, or zero if non-beta
    • getClientType

      public ClientType getClientType()
      Description copied from interface: ClientVersion
      Returns the client type.
      Specified by:
      getClientType in interface ClientVersion
      Returns:
      the type
    • isRC

      public boolean isRC()
      Returns if this build is a Release Candidate beta.
      Returns:
      TRUE if a release candidate, otherwise FALSE
    • setClientType

      public void setClientType(ClientType ct)
      Updates the client type.
      Parameters:
      ct - the ClientType
    • setIsRC

      public void setIsRC(boolean isRC)
      Updates whether this build is a Release Candidate beta.
      Parameters:
      isRC - TRUE if a release candidate, otherwise FALSE
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(ClientVersion c2)
      Specified by:
      compareTo in interface Comparable<ClientVersion>