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 TypeMethodDescriptionintbooleanintgetBeta()Returns the beta version.intReturns the build number.Returns the client type.intReturns the version number.inthashCode()booleanisRC()Returns if this build is a Release Candidate beta.voidUpdates the client type.voidsetIsRC(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, waitMethods 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:ClientVersionReturns the version number.- Specified by:
getVersionin interfaceClientVersion- Returns:
- the version
-
getClientBuild
public int getClientBuild()Description copied from interface:ClientVersionReturns the build number.- Specified by:
getClientBuildin interfaceClientVersion- Returns:
- the build
-
getBeta
public int getBeta()Description copied from interface:ClientVersionReturns the beta version.- Specified by:
getBetain interfaceClientVersion- Returns:
- the beta, or zero if non-beta
-
getClientType
Description copied from interface:ClientVersionReturns the client type.- Specified by:
getClientTypein 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:
compareToin interfaceComparable<ClientVersion>
-