public interface UnaryOperator
implements Function<T, T>
| java.util.function.UnaryOperator<T> |
表示对单个操作数的操作,该操作数生成与其操作数相同类型的结果。 对于操作数和结果是相同类型的情况,这是Function的专门化。
这是一个 functional interface其官能方法是 apply(Object) 。
也可以看看:
公共方法(Public methods) |
|
|---|---|
static <T> UnaryOperator<T> |
identity() 返回总是返回其输入参数的一元运算符。 |
继承方法(Inherited methods) |
|
|---|---|
java.util.function.Function
|
|
UnaryOperator<T> identity ()
返回总是返回其输入参数的一元运算符。
| 返回(Returns) | |
|---|---|
UnaryOperator<T> |
a unary operator that always returns its input argument |