I wrote a post on stackoverflow on how to use java.util.function.Function for simple method as parameter function....