Package com.atlassian.greenhopper.util
Class VersionKit.SoftwareVersion
java.lang.Object
com.atlassian.greenhopper.util.VersionKit.SoftwareVersion
- Enclosing class:
- VersionKit
-
Constructor Summary
ConstructorsConstructorDescriptionSoftwareVersion
(int majorVersion, int minorVersion) SoftwareVersion
(int majorVersion, int minorVersion, int bugfixVersion) SoftwareVersion
(String dottedVersionString) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
int
int
hashCode()
boolean
Returns true if this version is greater than the specified versionboolean
Returns true if this version is greater than if equal to the specified versionboolean
Returns true if this version is less than the specified versionboolean
Returns true if this version is less than or equal to the specified versiontoString()
-
Constructor Details
-
SoftwareVersion
-
SoftwareVersion
public SoftwareVersion(int majorVersion, int minorVersion, int bugfixVersion) -
SoftwareVersion
public SoftwareVersion(int majorVersion, int minorVersion)
-
-
Method Details
-
getMajorVersion
public int getMajorVersion() -
getMinorVersion
public int getMinorVersion() -
getBugFixVersion
public int getBugFixVersion() -
isGreaterThanOrEqualTo
Returns true if this version is greater than if equal to the specified version- Parameters:
that
- the specified version to compare against- Returns:
- true if this version is greater than if equal to the specified version
-
isLessThanOrEqualTo
Returns true if this version is less than or equal to the specified version- Parameters:
that
- the specified version to compare against- Returns:
- true if this version is less than or equal to the specified version
-
isGreaterThan
Returns true if this version is greater than the specified version- Parameters:
that
- the specified version to compare against- Returns:
- true if this version is greater than to the specified version
-
isLessThan
Returns true if this version is less than the specified version- Parameters:
that
- the specified version to compare against- Returns:
- true if this version is less than to the specified version
-
equals
-
hashCode
public int hashCode() -
toString
-