Package org.eclipse.jetty.toolchain.test
Class JDK
java.lang.Object
org.eclipse.jetty.toolchain.test.JDK
Common Java JVM/JDK environment utilities
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final boolean
True if JDK is 1.5 (or newer)static final boolean
True if JDK is 1.6 (or newer)static final boolean
True if JDK is 1.7 (or newer)static final boolean
True if JDK is 1.8 (or newer)static final boolean
True if JDK is 9.0 (or newer) -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
isJavaVersionAtLeast
(int maj, int min) private static int
-
Field Details
-
IS_5
public static final boolean IS_5True if JDK is 1.5 (or newer) -
IS_6
public static final boolean IS_6True if JDK is 1.6 (or newer) -
IS_7
public static final boolean IS_7True if JDK is 1.7 (or newer) -
IS_8
public static final boolean IS_8True if JDK is 1.8 (or newer) -
IS_9
public static final boolean IS_9True if JDK is 9.0 (or newer)
-
-
Constructor Details
-
JDK
public JDK()
-
-
Method Details
-
isJavaVersionAtLeast
private static boolean isJavaVersionAtLeast(int maj, int min) -
toInt
-