Enum Constant and Description |
---|
JAVA11
Java 11 as of JDK 11.x
|
JAVA12
Java 12 as of JDK 12.x
|
JAVA13
Java 13 as of JDK 13.x
|
JAVA14
Java 14 as of JDK 15.x
|
JAVA15
Java 15 as of JDK 15.x
|
JAVA8
Java 8 as of JDK 1.8.x
|
Modifier and Type | Method and Description |
---|---|
static LangLevel |
determine()
The current language level is taken from a system property or by inspecting the runtime.
|
static LangLevel |
parse(java.lang.String value) |
java.lang.String |
toString() |
static LangLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LangLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LangLevel JAVA8
public static final LangLevel JAVA11
public static final LangLevel JAVA12
public static final LangLevel JAVA13
public static final LangLevel JAVA14
public static final LangLevel JAVA15
public static LangLevel HIGHEST
public static LangLevel[] values()
for (LangLevel c : LangLevel.values()) System.out.println(c);
public static LangLevel 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 java.lang.String toString()
toString
in class java.lang.Enum<LangLevel>
public static LangLevel determine()
public static LangLevel parse(java.lang.String value)