public enum JavaVersion extends java.lang.Enum<JavaVersion>
getVersion()| Enum Constant and Description |
|---|
V1_4
Java 1.4
|
V1_5
Java 1.5
|
V1_6
Java 1.6
|
V10
Java 10
|
V11
Java 11
|
V12
Java 12
|
V13
Java 13
|
V15
Java 15
|
V17
Java 17
|
V19
Java 19
|
V21
Java 21
|
V23
Java 23
|
V7
Java 1.7
|
V8
Java 1.8
|
V9
Java 9
|
| Modifier and Type | Method and Description |
|---|---|
static JavaVersion |
getVersion()
get the current java version as an enum
|
static JavaVersion |
getVersion(java.lang.String javaRt)
get the correct enum value from the java runtime information
|
static JavaVersion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static JavaVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaVersion V1_4
public static final JavaVersion V1_5
public static final JavaVersion V1_6
public static final JavaVersion V7
public static final JavaVersion V8
public static final JavaVersion V9
public static final JavaVersion V10
public static final JavaVersion V11
public static final JavaVersion V12
public static final JavaVersion V13
public static final JavaVersion V15
public static final JavaVersion V17
public static final JavaVersion V19
public static final JavaVersion V21
public static final JavaVersion V23
public static JavaVersion[] values()
for (JavaVersion c : JavaVersion.values()) System.out.println(c);
public static JavaVersion valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static JavaVersion getVersion(java.lang.String javaRt)
javaRt - String, the java runtime version from System.getProperty("java.version")public static final JavaVersion getVersion()