Package com.zfabrik.components.java
Enum Class LangLevel
- All Implemented Interfaces:
Serializable
,Comparable<LangLevel>
,Constable
Supported language level abstraction
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionJava 11 as of JDK 11.xJava 12 as of JDK 12.xJava 13 as of JDK 13.xJava 14 as of JDK 15.xJava 15 as of JDK 15.xJava 16 as of JDK 16.xJava 17 as of JDK 17.xJava 18 as of JDK 18.xJava 21 as of JDK 21.xJava 23 as of JDK 23.x -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic LangLevel
The current language level is taken from a system property or by inspecting the runtime.Provide language level as Versionstatic LangLevel
toString()
static LangLevel
Returns the enum constant of this class with the specified name.static LangLevel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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 -
JAVA16
Java 16 as of JDK 16.x -
JAVA17
Java 17 as of JDK 17.x -
JAVA18
Java 18 as of JDK 18.x -
JAVA21
Java 21 as of JDK 21.x -
JAVA23
Java 23 as of JDK 23.x
-
-
Field Details
-
HIGHEST
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
-
getVersion
Provide language level as Version -
determine
The current language level is taken from a system property or by inspecting the runtime. This method implements the official way. The current default is . -
parse
-