Class VersionUtils

java.lang.Object
org.hisp.dhis.util.VersionUtils

public class VersionUtils extends Object
  • Constructor Details

    • VersionUtils

      public VersionUtils()
  • Method Details

    • getMajorVersion

      public static Integer getMajorVersion(String version)
      Returns the major version as an integer based on the given version string.
      Parameters:
      version - the version string.
      Returns:
      the major version.
    • getPatchVersion

      public static Integer getPatchVersion(String version)
      Returns the patch version as an integer based on the given version string.
      Parameters:
      version - the version string.
      Returns:
      the patch version.