java.lang.Object
org.eclipse.jetty.toolchain.test.JDK

public class JDK extends Object
Common Java JVM/JDK environment utilities
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static 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
    Constructor
    Description
    JDK()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static boolean
    isJavaVersionAtLeast(int maj, int min)
     
    private static int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • IS_5

      public static final boolean IS_5
      True if JDK is 1.5 (or newer)
    • IS_6

      public static final boolean IS_6
      True if JDK is 1.6 (or newer)
    • IS_7

      public static final boolean IS_7
      True if JDK is 1.7 (or newer)
    • IS_8

      public static final boolean IS_8
      True if JDK is 1.8 (or newer)
    • IS_9

      public static final boolean IS_9
      True if JDK is 9.0 (or newer)
  • Constructor Details

    • JDK

      public JDK()
  • Method Details

    • isJavaVersionAtLeast

      private static boolean isJavaVersionAtLeast(int maj, int min)
    • toInt

      private static int toInt(String val)