Package 

Class VersionHelper

    • Method Summary

      Modifier and Type Method Description
      static int getMajor(String version) Extracts the major version number from a version string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getMajor

         static int getMajor(String version)

        Extracts the major version number from a version string.

        The version string is expected to be in the format "major.minor.patch" (e.g., "1.2.3").If the string cannot be parsed or is in an unexpected format, this method logs an errorand returns 0.

        Parameters:
        version - The version string to parse.