T
- 操作数的类型和运算符的结果
@FunctionalInterface public interface UnaryOperator<T> extends Function<T,T>
Function
。
这是一个functional interface的功能方法是Function.apply(Object)
。
Function
Modifier and Type | Method and Description |
---|---|
static <T> UnaryOperator<T> |
identity()
返回始终返回其输入参数的一元运算符。
|
static <T> UnaryOperator<T> identity()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.