com.atlassian.crowd.acceptance.utils
Class VersionUtils

java.lang.Object
  extended by com.atlassian.crowd.acceptance.utils.VersionUtils

public class VersionUtils
extends Object


Method Summary
static int compareVersions(String aVersion, String bVersion)
          Compares two version numbers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 compare
bVersion - 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.