Package com.atlassian.jira.util.system
Class VersionNumber
java.lang.Object
com.atlassian.jira.util.system.VersionNumber
- All Implemented Interfaces:
Comparable<VersionNumber>
Version Number holder. Implementation from the Mylyn JIRA Connector project.
Added isGreaterThan etc. convenience methods.
Doesn't handle things like 3.3rc1 (will actually parse as 3.31 which will be > 3.3)
- Author:
- Eugene Kuleshov
-
Constructor Summary
ConstructorsConstructorDescriptionVersionNumber
(String version) VersionNumber
(String version, String splitterRegex) -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(VersionNumber versionNumber) boolean
Returns this version formatted as a valid OSGI version.int
hashCode()
boolean
boolean
boolean
boolean
toString()
-
Constructor Details
-
VersionNumber
-
VersionNumber
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<VersionNumber>
-
isGreaterThan
-
isGreaterThanOrEquals
-
isLessThan
-
isLessThanOrEquals
-
getOSGIVersion
Returns this version formatted as a valid OSGI version.- Returns:
- A valid OSGI version string.
-
equals
-
hashCode
public int hashCode() -
toString
-