Function interface is exactly same as predicates except that functions can return any type of result but function should(can) return only one value and that value can be any type. This is a functional interface whose functional method is apply(Object).
Function interface present in java.util.function package. As this is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
identity() – Returns a function that always returns its input argument.