Interface Version
@PublicApi
public interface Version
Represents a software version
-
Method Summary
Modifier and TypeMethodDescriptionintintintbooleanisGreaterThan(Version that) Returns true if this version is greater than the specified versionbooleanReturns true if this version is greater than if equal to the specified versionbooleanisLessThan(Version that) Returns true if this version is less than the specified versionbooleanisLessThanOrEqualTo(Version that) Returns true if this version is less than or equal to the specified 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
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
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
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
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
-