Comparable<ServerVersion>
public class ServerVersion extends Object implements Comparable<ServerVersion>
Constructor | 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(List<Integer> versionList) |
Constructs a new instance with the given version list of integers.
|
Modifier and Type | Method | Description |
---|---|---|
int |
compareTo(ServerVersion o) |
|
boolean |
equals(Object o) |
|
List<Integer> |
getVersionList() |
Gets the version list.
|
int |
hashCode() |
|
String |
toString() |
public ServerVersion()
public ServerVersion(List<Integer> versionList)
versionList
- a non-null, three-item list of integerspublic ServerVersion(int majorVersion, int minorVersion)
majorVersion
- the major versionminorVersion
- the minor versionpublic List<Integer> getVersionList()
public int compareTo(ServerVersion o)
compareTo
in interface Comparable<ServerVersion>