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 Summary
ConstructorsConstructorDescriptionClientInfo
(int version, int build) Creates a new client information bean.ClientInfo
(int version, int build, int beta) Creates a new client information bean. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
getBeta()
Returns the beta version.int
Returns the build number.Returns the client type.int
Returns the version number.int
hashCode()
boolean
isRC()
Returns if this build is a Release Candidate beta.void
Updates the client type.void
setIsRC
(boolean isRC) Updates whether this build is a Release Candidate beta.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.deltava.beans.acars.ClientVersion
isBeta
-
Constructor Details
-
ClientInfo
public ClientInfo(int version, int build) Creates a new client information bean.- Parameters:
version
- the version numberbuild
- the build number
-
ClientInfo
public ClientInfo(int version, int build, int beta) Creates a new client information bean.- Parameters:
version
- the version numberbuild
- the build numberbeta
- the beta number
-
-
Method Details
-
getVersion
public int getVersion()Description copied from interface:ClientVersion
Returns the version number.- Specified by:
getVersion
in interfaceClientVersion
- Returns:
- the version
-
getClientBuild
public int getClientBuild()Description copied from interface:ClientVersion
Returns the build number.- Specified by:
getClientBuild
in interfaceClientVersion
- Returns:
- the build
-
getBeta
public int getBeta()Description copied from interface:ClientVersion
Returns the beta version.- Specified by:
getBeta
in interfaceClientVersion
- Returns:
- the beta, or zero if non-beta
-
getClientType
Description copied from interface:ClientVersion
Returns the client type.- Specified by:
getClientType
in interfaceClientVersion
- 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
-
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
-
hashCode
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ClientVersion>
-