Package com.atlassian.greenhopper.util
Class VersionKit
java.lang.Object
com.atlassian.greenhopper.util.VersionKit
Helps with versions comparisons
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VersionKit.SoftwareVersionParses and returns a SoftwareVersion object representing the dotted number string.static VersionKit.SoftwareVersionversion(int majorVersion, int... versions) static VersionKit.SoftwareVersionversion(com.atlassian.jira.util.BuildUtilsInfo buildUtilsInfo)
-
Constructor Details
-
VersionKit
public VersionKit()
-
-
Method Details
-
parse
Parses and returns a SoftwareVersion object representing the dotted number string.- Parameters:
dottedVersionString- the input version- Returns:
- a version domain object
- Throws:
IllegalArgumentException- if the string is not N.N.N
-
version
-
version
public static VersionKit.SoftwareVersion version(com.atlassian.jira.util.BuildUtilsInfo buildUtilsInfo)
-