When does the Java method accept Function<? super T, ? extends U> Function<? super T, ? extends U> Function<? super T, ? extends U> , then you can provide method references in the syntax, as shown below: MyClass::myMethod .
However, I am wondering if there is a way to link multiple method calls. Here is an example illustrating the case.
I am wondering if there is syntax for translating this expression into lambda. I hope there is something like the following:
Alternatively, is there a utility class for combining functions?
// example: (which does not exist) FunctionUtil.chain(String::trim, String::toUpperCase);
java lambda java-8 java-stream
bvdb
source share