Package one.tranic.t.thread
Class Sys
java.lang.Object
one.tranic.t.thread.Sys
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic intRetrieves the current JVM version as an integer.static booleanChecks whether a class with the specified fully qualified name exists in the classpath.
-
Constructor Details
-
Sys
public Sys()
-
-
Method Details
-
getCurrentJVMVersion
public static int getCurrentJVMVersion()Retrieves the current JVM version as an integer.The version is determined by parsing the system property "java.version". If parsing fails, the feature version from
Runtime.version()is used as a fallback.- Returns:
- the current JVM version as an integer.
-
getCurrentJVMClassVersion
public static int getCurrentJVMClassVersion() -
hasClass
Checks whether a class with the specified fully qualified name exists in the classpath.- Parameters:
className- the fully qualified name of the class to check.- Returns:
trueif the class exists;falseotherwise.
-