Package com.diffplug.spotless
Class Jvm
java.lang.Object
com.diffplug.spotless.Jvm
Java virtual machine helper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Utility to map constraints of formatter to this JVM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <V> Jvm.Support
<V> Creates a map of JVM requirements for a formatterstatic int
version()
-
Constructor Details
-
Jvm
public Jvm()
-
-
Method Details
-
version
public static int version()- Returns:
- the major version of this VM, e.g. 8, 9, 10, 11, 13, etc.
-
support
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
-