Package org.aoju.bus.core.lang.function
Interface XFunction<T,R>
- Type Parameters:
T- 函数的输入类型R- 函数结果的类型
- All Superinterfaces:
Function<T,,R> Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
表示接受一个参数并产生结果的函数
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
-
Method Details
-
identity
返回一个始终返回其输入参数的函数- Type Parameters:
T- 函数的输入和输出对象的类型- Returns:
- 始终返回其输入参数的函数
-
castingIdentity
执行函数- Type Parameters:
T- 函数的输入类型R- 函数结果的类型- Returns:
- 执行后的结果
-
applying
-
apply
-