Class: AnalysisServerVersion
Last update: 22.06.2026Package: com.phoenix_int.aserver.client.v2
Class Hierarchy
↳ java.lang.Object
↳ com.phoenix_int.aserver.client.v2.AnalysisServerVersion
Implemented Interfaces
java.lang.Comparable<AnalysisServerVersion>
Declaration
public class AnalysisServerVersion
extends java.lang.Object
implements java.lang.Comparable<AnalysisServerVersion>
Server protocol version. Useful for determining if a server supports specific features.
Constructor Summary
| Constructor and Description |
|---|
AnalysisServerVersion(int major, int minor, int build)Constructor. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(AnalysisServerVersion o) |
boolean |
equals(java.lang.Object obj) |
int |
getBuild()Get the build. |
int |
getMajor()Get the major version. |
int |
getMinor()Get the minor version. |
int |
hashCode() |
java.lang.String |
toString() |
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Constructor Detail
AnalysisServerVersion
public AnalysisServerVersion(int major,
int minor,
int build)
Constructor.
Parameters:
major- the major versionminor- the minor versionbuild- the build number
Method Detail
getMajor
public int getMajor()
Get the major version.
getMinor
public int getMinor()
Get the minor version.
getBuild
public int getBuild()
Get the build.
hashCode
public int hashCode()
Overrides:
hashCodein classjava.lang.Object
equals
public boolean equals(java.lang.Object obj)
Overrides:
equalsin classjava.lang.Object
compareTo
public int compareTo(AnalysisServerVersion o)
Specified by:
compareToin interfacejava.lang.Comparable<AnalysisServerVersion>
toString
public java.lang.String toString()
Overrides:
toStringin classjava.lang.Object