public final class VersionNumber extends Object implements Comparable<VersionNumber>
Doesn't handle things like 3.3rc1 (will actually parse as 3.31 which will be > 3.3)
Constructor and Description |
---|
VersionNumber(String version) |
VersionNumber(String version,
String splitterRegex) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(VersionNumber versionNumber) |
boolean |
equals(Object that) |
String |
getOSGIVersion()
Returns this version formatted as a valid OSGI version.
|
int |
hashCode() |
boolean |
isGreaterThan(VersionNumber v) |
boolean |
isGreaterThanOrEquals(VersionNumber v) |
boolean |
isLessThan(VersionNumber v) |
boolean |
isLessThanOrEquals(VersionNumber v) |
String |
toString() |
public VersionNumber(String version)
public int compareTo(VersionNumber versionNumber)
compareTo
in interface Comparable<VersionNumber>
public boolean isGreaterThan(VersionNumber v)
public boolean isGreaterThanOrEquals(VersionNumber v)
public boolean isLessThan(VersionNumber v)
public boolean isLessThanOrEquals(VersionNumber v)
public String getOSGIVersion()
http://www.osgi.org/javadoc/r4v41/org/osgi/framework/Version.html
Copyright © 2002-2018 Atlassian. All Rights Reserved.