Class VersionUtils
java.lang.Object
com.atlassian.crowd.acceptance.utils.VersionUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
compareVersions
(String aVersion, String bVersion) Compares two version numbers.
-
Method Details
-
compareVersions
Compares two version numbers. Only numbers and dots are allowed in the actual release number (e.g. "1.4.5"). Anything after possible '-' is ignored.- Parameters:
aVersion
- version number to comparebVersion
- version number to compare- Returns:
- positive integer if a is bigger than b, negative integer if b is bigger than a, or 0 if they are equal
-