Package org.aoju.bus.core.lang.function
Interface XUnaryOperator<T>
- Type Parameters:
T- 对象泛型
- All Superinterfaces:
Function<T,,T> Serializable,UnaryOperator<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
表示对单个操作数的操作,该操作产生与其操作数相同类型的结果 对于操作数和结果类型相同的情况,这是 Function 的一种特殊化
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
-
Method Details
-
identity
返回始终返回其输入参数的一元运算符- Type Parameters:
T- 输入输出类型- Returns:
- 始终返回其输入参数的一元运算符
-
casting
执行函数操作- Type Parameters:
T- 参数类型R- 结果类型F- 函数类型- Parameters:
function- 源函数- Returns:
- 函数结果
-
applying
-
apply
-