| Modifier and Type | Field and Description |
|---|---|
| private static final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| private static int | |
| public static int | Returns: the major Java version, i.e. '8' for Java 1.8, '9' for Java 9 etc.Gets the major Java version |
| public static boolean | Returns: true if the application is running on Java 9 or later; and false
otherwise.Gets a boolean value depending if the application is running on Java 9 or later |
| private static int | |
| pack-priv static int |
| majorJavaVersion | back to summary |
|---|---|
| private static final int majorJavaVersion | |
| JavaVersion | back to summary |
|---|---|
| private JavaVersion() | |
| determineMajorJavaVersion | back to summary |
|---|---|
| private static int determineMajorJavaVersion() | |
| extractBeginningInt | back to summary |
|---|---|
| private static int extractBeginningInt(String javaVersion) | |
| getMajorJavaVersion | back to summary |
|---|---|
| public static int getMajorJavaVersion() Gets the major Java version
| |
| isJava9OrLater | back to summary |
|---|---|
| public static boolean isJava9OrLater() Gets a boolean value depending if the application is running on Java 9 or later
| |
| parseDotted | back to summary |
|---|---|
| private static int parseDotted(String javaVersion) | |
| parseMajorJavaVersion | back to summary |
|---|---|
| pack-priv static int parseMajorJavaVersion(String javaVersion) | |