An enumeration of Java versions.
Enum constant | Description |
---|---|
VERSION_1_1 |
|
VERSION_1_2 |
|
VERSION_1_3 |
|
VERSION_1_4 |
|
VERSION_1_5 |
|
VERSION_1_6 |
|
VERSION_1_7 |
|
VERSION_1_8 |
|
VERSION_1_9 |
Type | Name and description |
---|---|
static JavaVersion |
current() Returns the version of the current JVM. |
String |
getMajorVersion() |
boolean |
isJava5() |
boolean |
isJava5Compatible() |
boolean |
isJava6() |
boolean |
isJava6Compatible() |
boolean |
isJava7() |
boolean |
isJava7Compatible() |
boolean |
isJava8Compatible() |
boolean |
isJava9Compatible() |
String |
toString() |
static JavaVersion |
toVersion(Object value) Converts the given object into a JavaVersion . |
Returns the version of the current JVM.
Converts the given object into a JavaVersion
.
value
- An object whose toString() value is to be converted. May be null.