public enum LanguageFeature extends Enum<LanguageFeature>
| Enum Constant and Description |
|---|
LAMBDA
Lambda functions and method references
|
MODULES
Module system, defined in module-info.java files
|
RECORDS
Record classes and compact canonical constructors
|
SWITCH_EXPRESSIONS
Switch treated as expressions
|
TEXT_BLOCKS
Multi-line text blocks in """..."""
|
| Modifier and Type | Method and Description |
|---|---|
static LanguageFeature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LanguageFeature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LanguageFeature LAMBDA
public static final LanguageFeature MODULES
public static final LanguageFeature TEXT_BLOCKS
public static final LanguageFeature RECORDS
public static final LanguageFeature SWITCH_EXPRESSIONS
public static LanguageFeature[] values()
for (LanguageFeature c : LanguageFeature.values()) System.out.println(c);
public static LanguageFeature valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2024 OpenClover.org. All rights reserved.