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>