Interface RefToRefFunction<I,O>
- Type Parameters:
I- The input type.O- The output type.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A function that accepts an
Object
and returns an Object.- Since:
- 1.2
-
Method Summary
Modifier and TypeMethodDescriptionApplies the function.static <T> RefToRefFunction<T, T> identity()Returns theObjectidentity function.
-
Method Details
-
apply
-
identity
Returns theObjectidentity function. The identity function always returns the input argument.- Type Parameters:
T- The input and output type of the function.- Returns:
- The identity function.
-