Serializable
, Comparable<LambdaExpressionTree.BodyKind>
public static enum LambdaExpressionTree.BodyKind extends Enum<LambdaExpressionTree.BodyKind>
Enum Constant | Description |
---|---|
EXPRESSION |
enum constant for expression lambdas
|
STATEMENT |
enum constant for statement lambdas
|
Modifier and Type | Method | Description |
---|---|---|
static LambdaExpressionTree.BodyKind |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static LambdaExpressionTree.BodyKind[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LambdaExpressionTree.BodyKind EXPRESSION
public static final LambdaExpressionTree.BodyKind STATEMENT
public static LambdaExpressionTree.BodyKind[] values()
for (LambdaExpressionTree.BodyKind c : LambdaExpressionTree.BodyKind.values()) System.out.println(c);
public static LambdaExpressionTree.BodyKind 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 null Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2005, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Ubuntu+0-9b151-2