Package net.hydromatic.morel.util
Class JavaVersion
java.lang.Object
net.hydromatic.morel.util.JavaVersion
- All Implemented Interfaces:
Comparable<JavaVersion>
Version of the JDK.
The components field contains the Java version string,
parsed into a list of integers. For example,
Java "13.0.2" is the list [13, 0, 2];
Java "1.8.0_341" is the list [8, 0, 341].
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Comparator<Iterable<Integer>> static final JavaVersionVersion of the current JVM. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic JavaVersionof(int... components) Creates a version.static JavaVersionCreates a version.
-
Field Details
-
components
-
CURRENT
Version of the current JVM. -
COMPARATOR
-
-
Constructor Details
-
JavaVersion
Private constructor.
-
-
Method Details
-
of
Creates a version. -
of
Creates a version. -
compareTo
- Specified by:
compareToin interfaceComparable<JavaVersion>
-