Interface Version
@PublicApi
public interface Version
Represents a software version
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
boolean
isGreaterThan
(Version that) Returns true if this version is greater than the specified versionboolean
Returns true if this version is greater than if equal to the specified versionboolean
isLessThan
(Version that) Returns true if this version is less than the specified versionboolean
isLessThanOrEqualTo
(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
-