Package com.helger.commons.system
Class JavaVersionHelper
java.lang.Object
com.helger.commons.system.JavaVersionHelper
Helper class that holds the current class version. Must be a separate class
to maintain the correct initialization order.
- Author:
- Philip Helger
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final doubleThe global Java class version as a double value.static final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAtLeast(int nRequestedJavaMajor, int nRequestedJavaMinor)
-
Field Details
-
JAVA_CLASS_VERSION
public static final double JAVA_CLASS_VERSIONThe global Java class version as a double value. -
JAVA_MAJOR_VERSION
public static final int JAVA_MAJOR_VERSION -
JAVA_MINOR_VERSION
public static final int JAVA_MINOR_VERSION -
JAVA_MICRO_VERSION
public static final int JAVA_MICRO_VERSION
-
-
Method Details
-
isAtLeast
public static boolean isAtLeast(int nRequestedJavaMajor, int nRequestedJavaMinor)
-