Class Jvm


  • public final class Jvm
    extends Object
    Java virtual machine helper
    • Constructor Detail

      • Jvm

        public Jvm()
    • Method Detail

      • version

        public static int version()
        Returns:
        the major version of this VM, e.g. 8, 9, 10, 11, 13, etc.
      • support

        public static <V> Jvm.Support<V> support​(String formatterName)
        Creates a map of JVM requirements for a formatter
        Type Parameters:
        V - Version type of the formatter (V#toString() must correspond to a semantic version, separated by dots)
        Parameters:
        formatterName - Name of the formatter
        Returns:
        Empty map of supported formatters