Interface Version


@PublicApi public interface Version
Represents a software version
  • Method Details

    • getMajorVersion

      int getMajorVersion()
      Returns:
      the major version number
    • getMinorVersion

      int getMinorVersion()
      Returns:
      the minor version number
    • getBugFixVersion

      int getBugFixVersion()
      Returns:
      the bug fix version number
    • getQualifier

      String getQualifier()
      Returns:
      the qualifier
    • isGreaterThanOrEqualTo

      boolean isGreaterThanOrEqualTo(Version 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

      boolean isLessThanOrEqualTo(Version 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

      boolean isGreaterThan(Version 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

      boolean isLessThan(Version 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