public class ServerVersion extends java.lang.Object implements java.lang.Comparable<ServerVersion>
Constructor and Description |
---|
ServerVersion()
Creates a server version which will compare as less than all other valid versions
|
ServerVersion(int majorVersion,
int minorVersion)
Constructs a new instance with the given major and minor versions and a patch version of 0.
|
ServerVersion(java.util.List<java.lang.Integer> versionList)
Constructs a new instance with the given version list of integers.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ServerVersion o) |
boolean |
equals(java.lang.Object o) |
java.util.List<java.lang.Integer> |
getVersionList()
Gets the version list.
|
int |
hashCode() |
java.lang.String |
toString() |
public ServerVersion()
public ServerVersion(java.util.List<java.lang.Integer> versionList)
versionList
- a non-null, three-item list of integerspublic ServerVersion(int majorVersion, int minorVersion)
majorVersion
- the major versionminorVersion
- the minor versionpublic java.util.List<java.lang.Integer> getVersionList()
public int compareTo(ServerVersion o)
compareTo
in interface java.lang.Comparable<ServerVersion>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object