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.