Class VersionKit.SoftwareVersion

java.lang.Object
com.atlassian.greenhopper.util.VersionKit.SoftwareVersion
Enclosing class:
VersionKit

public static class VersionKit.SoftwareVersion extends Object
  • Constructor Details

    • SoftwareVersion

      public SoftwareVersion(String dottedVersionString)
    • SoftwareVersion

      public SoftwareVersion(int majorVersion, int minorVersion, int bugfixVersion)
    • SoftwareVersion

      public SoftwareVersion(int majorVersion, int minorVersion)
  • Method Details

    • getMajorVersion

      public int getMajorVersion()
    • getMinorVersion

      public int getMinorVersion()
    • getBugFixVersion

      public int getBugFixVersion()
    • isGreaterThanOrEqualTo

      public boolean isGreaterThanOrEqualTo(VersionKit.SoftwareVersion that)
      Returns true if this version is greater than if equal to the specified version
      Parameters:
      that - the specified version to compare against
      Returns:
      true if this version is greater than if equal to the specified version
    • isLessThanOrEqualTo

      public boolean isLessThanOrEqualTo(VersionKit.SoftwareVersion that)
      Returns true if this version is less than or equal to the specified version
      Parameters:
      that - the specified version to compare against
      Returns:
      true if this version is less than or equal to the specified version
    • isGreaterThan

      public boolean isGreaterThan(VersionKit.SoftwareVersion that)
      Returns true if this version is greater than the specified version
      Parameters:
      that - the specified version to compare against
      Returns:
      true if this version is greater than to the specified version
    • isLessThan

      public boolean isLessThan(VersionKit.SoftwareVersion that)
      Returns true if this version is less than the specified version
      Parameters:
      that - the specified version to compare against
      Returns:
      true if this version is less than to the specified version
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object