public final class UnaryOperators
extends java.lang.Object
UnaryOperator
interface.Modifier and Type | Method and Description |
---|---|
static <T> UnaryOperator<T> |
identity()
Returns a unary operator that always returns its input argument.
|
public static <T> UnaryOperator<T> identity()
T
- the type of the input and output of the operator