Package io.github.classgraph.utils
Class VersionFinder
- java.lang.Object
-
- io.github.classgraph.utils.VersionFinder
-
public class VersionFinder extends Object
Finds the version number of ClassGraph, and the version of the JDK.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VersionFinder.OperatingSystem
The operating system type.
-
Field Summary
Fields Modifier and Type Field Description static int
JAVA_MAJOR_VERSION
Java major version -- 7 for "1.7", 8 for "1.8.0_244", 9 for "9", 11 for "11-ea", etc.static String
JAVA_VERSION
Java version stringstatic VersionFinder.OperatingSystem
OS
The operating system type.
-
Constructor Summary
Constructors Constructor Description VersionFinder()
-
-
-
Field Detail
-
JAVA_VERSION
public static final String JAVA_VERSION
Java version string
-
JAVA_MAJOR_VERSION
public static final int JAVA_MAJOR_VERSION
Java major version -- 7 for "1.7", 8 for "1.8.0_244", 9 for "9", 11 for "11-ea", etc.
-
OS
public static final VersionFinder.OperatingSystem OS
The operating system type.
-
-
Method Detail
-
getVersion
public static final String getVersion()
- Returns:
- the version number of ClassGraph.
-
-