Enum Class FunctionalInterfaceUtil.FunctionalCategory
java.lang.Object
java.lang.Enum<FunctionalInterfaceUtil.FunctionalCategory>
cloud.opencode.base.reflect.lambda.FunctionalInterfaceUtil.FunctionalCategory
- All Implemented Interfaces:
Serializable, Comparable<FunctionalInterfaceUtil.FunctionalCategory>, Constable
- Enclosing class:
FunctionalInterfaceUtil
public static enum FunctionalInterfaceUtil.FunctionalCategory
extends Enum<FunctionalInterfaceUtil.FunctionalCategory>
Functional interface category
函数式接口类别
- Since:
- JDK 25, opencode-base-reflect V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConsumer-like (has params, void return) 类似Consumer(有参数,void返回)Function-like (has params, has return) 类似Function(有参数,有返回)Not a functional interface 不是函数式接口Predicate-like (has params, boolean return) 类似Predicate(有参数,boolean返回)Runnable-like (no params, void return) 类似Runnable(无参数,void返回)Supplier-like (no params, has return) 类似Supplier(无参数,有返回) -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_FUNCTIONAL
Not a functional interface 不是函数式接口 -
RUNNABLE
Runnable-like (no params, void return) 类似Runnable(无参数,void返回) -
CONSUMER
Consumer-like (has params, void return) 类似Consumer(有参数,void返回) -
SUPPLIER
Supplier-like (no params, has return) 类似Supplier(无参数,有返回) -
PREDICATE
Predicate-like (has params, boolean return) 类似Predicate(有参数,boolean返回) -
FUNCTION
Function-like (has params, has return) 类似Function(有参数,有返回)
-
-
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
-