Class VersionUtils

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

public class VersionUtils extends Object
  • Method Details

    • 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