Package ninja.utils
Enum Lambdas.Kind
- java.lang.Object
-
- java.lang.Enum<Lambdas.Kind>
-
- ninja.utils.Lambdas.Kind
-
- All Implemented Interfaces:
Serializable
,Comparable<Lambdas.Kind>
- Enclosing class:
- Lambdas
public static enum Lambdas.Kind extends Enum<Lambdas.Kind>
The kind of lambda. Lambdas in Java can either be references to methods or anonymously defined. https://docs.oracle.com/javase/tutorial/java/javaOO/methodreferences.html
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANONYMOUS_METHOD_REFERENCE
ANY_INSTANCE_METHOD_REFERENCE
SPECIFIC_INSTANCE_METHOD_REFERENCE
STATIC_METHOD_REFERENCE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Lambdas.Kind
valueOf(String name)
Returns the enum constant of this type with the specified name.static Lambdas.Kind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STATIC_METHOD_REFERENCE
public static final Lambdas.Kind STATIC_METHOD_REFERENCE
-
SPECIFIC_INSTANCE_METHOD_REFERENCE
public static final Lambdas.Kind SPECIFIC_INSTANCE_METHOD_REFERENCE
-
ANY_INSTANCE_METHOD_REFERENCE
public static final Lambdas.Kind ANY_INSTANCE_METHOD_REFERENCE
-
ANONYMOUS_METHOD_REFERENCE
public static final Lambdas.Kind ANONYMOUS_METHOD_REFERENCE
-
-
Method Detail
-
values
public static Lambdas.Kind[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Lambdas.Kind c : Lambdas.Kind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Lambdas.Kind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
-