Object Runtime

  • All Implemented Interfaces:

    
    public class Runtime
    
                        

    Utility object for runtime-related functions in the Scorpio API. This object provides methods to retrieve information about the Java runtime environment.

    Since:

    1.0.0

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static Runtime INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getJavaVersion() Retrieves the major version of the Java Runtime Environment.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getJavaVersion

         final Integer getJavaVersion()

        Retrieves the major version of the Java Runtime Environment.

        The version is returned as an integer. For example, for Java 8, it returns 8; for Java 11, it returns 11.

        Returns:

        the major Java version as an Int

        Since:

        1.0.0