Package org.hisp.dhis.util
Class VersionUtils
java.lang.Object
org.hisp.dhis.util.VersionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegergetMajorVersion(String version) Returns the major version as an integer based on the given version string.static IntegergetPatchVersion(String version) Returns the patch version as an integer based on the given version string.
-
Constructor Details
-
VersionUtils
public VersionUtils()
-
-
Method Details
-
getMajorVersion
Returns the major version as an integer based on the given version string.- Parameters:
version- the version string.- Returns:
- the major version.
-
getPatchVersion
Returns the patch version as an integer based on the given version string.- Parameters:
version- the version string.- Returns:
- the patch version.
-