public final class JavaSpecVersion extends Object implements Comparable<JavaSpecVersion>
Constructor and Description |
---|
JavaSpecVersion(CharSequence source)
Create a new version from a simple version string (e.g.
|
JavaSpecVersion(int major,
int minor)
Create a new version information object.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(JavaSpecVersion that) |
boolean |
equals(Object o) |
String |
getVersionString()
Returns the version number of this instance of Openfire as a
String (ie major.minor.revision).
|
int |
hashCode() |
boolean |
isNewerThan(JavaSpecVersion otherVersion)
Convenience method for comparing versions
|
String |
toString() |
public JavaSpecVersion(int major, int minor)
major
- the major release number.minor
- the minor release number.public JavaSpecVersion(CharSequence source)
source
- the version stringpublic String getVersionString()
public boolean isNewerThan(JavaSpecVersion otherVersion)
otherVersion
- a version to compare againsttrue
if this version is newer, otherwise false
public int compareTo(JavaSpecVersion that)
compareTo
in interface Comparable<JavaSpecVersion>
Copyright © 2003–2019 Ignite Realtime. All rights reserved.