com.atlassian.crowd.acceptance.utils
Class VersionUtils
java.lang.Object
com.atlassian.crowd.acceptance.utils.VersionUtils
public class VersionUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
compareVersions
public static int compareVersions(String aVersion,
String bVersion)
- 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
Copyright © 2013 Atlassian. All Rights Reserved.