| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private Integer | |
| private Integer | |
| private Integer |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(ServerVersion
the object to be compared. other)Implements java. Compares this object with the specified object for order. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public int | |
| public int | |
| public int | |
| public boolean | Returns: true if version meets the minimum specified by `min'The minimum version to compare against. min)Does this version meet the minimum specified by `min'? |
| public static ServerVersion | Returns: ServerVersionstring version representation versionString)Parse the server version into major/minor/subminor. |
| public String | Returns: string version representationOverrides java. A string representation of this version. |
| completeVersion | back to summary |
|---|---|
| private String completeVersion | |
| major | back to summary |
|---|---|
| private Integer major | |
| minor | back to summary |
|---|---|
| private Integer minor | |
| subminor | back to summary |
|---|---|
| private Integer subminor | |
| ServerVersion | back to summary |
|---|---|
| public ServerVersion(String completeVersion, int major, int minor, int subminor) | |
| ServerVersion | back to summary |
|---|---|
| public ServerVersion(int major, int minor, int subminor) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(ServerVersion other) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getMajor | back to summary |
|---|---|
| public int getMajor() | |
| getMinor | back to summary |
|---|---|
| public int getMinor() | |
| getSubminor | back to summary |
|---|---|
| public int getSubminor() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| meetsMinimum | back to summary |
|---|---|
| public boolean meetsMinimum(ServerVersion min) Does this version meet the minimum specified by `min'?
| |
| parseVersion | back to summary |
|---|---|
| public static ServerVersion parseVersion(final String versionString) Parse the server version into major/minor/subminor.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. A string representation of this version. If this version was parsed from, or provided with, a "complete" string which may contain more than just the version number, this string is returned verbatim. Otherwise, a string representation of the version numbers is given. | |