Class Utils


  • public final class Utils
    extends java.lang.Object
    Author:
    Jeremy Long
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int getJavaUpdateVersion()
      Returns the update version from the Java runtime.
      static int getJavaVersion()
      Returns the Java major version as a whole number.
      protected static int parseUpdate​(java.lang.String runtimeVersion)
      Parses the update version from the runtime version.
      • Methods inherited from class java.lang.Object

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

      • getJavaVersion

        public static int getJavaVersion()
        Returns the Java major version as a whole number.
        Returns:
        the Java major version as a whole number
      • getJavaUpdateVersion

        public static int getJavaUpdateVersion()
        Returns the update version from the Java runtime.
        Returns:
        the update version
      • parseUpdate

        protected static int parseUpdate​(java.lang.String runtimeVersion)
        Parses the update version from the runtime version.
        Parameters:
        runtimeVersion - the runtime version
        Returns:
        the update version