Package org.hisp.dhis.model
Class SystemVersion
java.lang.Object
org.hisp.dhis.model.SystemVersion
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether this system version is equal to the given version.booleanIndicates whether this system version is higher than the given version.booleanisHigherOrEqual(String version) Indicates whether this system version is higher than or equal to the given version.booleanIndicates whether this system version is lower than the given version.booleanisLowerOrEqual(String version) Indicates whether this system version is lower than or equal to the given version.static SystemVersionCreates aSystemVersionfrom the given version string.version()Returns the version as a string.
-
Constructor Details
-
SystemVersion
Constructor.- Parameters:
version- the version string.
-
-
Method Details
-
version
Returns the version as a string.- Returns:
- the version string.
-
of
Creates aSystemVersionfrom the given version string.- Parameters:
version- the version string.- Returns:
- a
SystemVersion.
-
isHigher
Indicates whether this system version is higher than the given version.- Parameters:
version- the version to compare with.- Returns:
- true if higher, false if not.
-
isHigherOrEqual
Indicates whether this system version is higher than or equal to the given version.- Parameters:
version- the version to compare with.- Returns:
- true if higher or equal, false if not.
-
isEqual
Indicates whether this system version is equal to the given version.- Parameters:
version- the version to compare with.- Returns:
- true if equal, false if not.
-
isLowerOrEqual
Indicates whether this system version is lower than or equal to the given version.- Parameters:
version- the version to compare with.- Returns:
- true if lower or equal, false if not.
-
isLower
Indicates whether this system version is lower than the given version.- Parameters:
version- the version to compare with.- Returns:
- true if lower, false if not.
-