Package one.tranic.scorpio.api.util
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.
-
-
Method Summary
Modifier and Type Method Description final Integer
getJavaVersion()
Retrieves the major version of the Java Runtime Environment. -
-
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
-
-
-
-