T - the type of the operand and result of the operator@FunctionalInterface public interface UnaryOperator<T> extends Function<T,T>
Function for
the case where the operand and result are of the same type.
This is a functional interface
whose functional method is Function.apply(Object).
Function| Modifier and Type | Method and Description |
|---|---|
static <T> UnaryOperator<T> |
identity()
Returns a unary operator that always returns its input argument.
|
static <T> UnaryOperator<T> identity()
Generated by SciJava from the sources of OpenJDK 8 (Zulu), which are licensed under the GNU General Public License, version 2, with the Classpath Exception. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.