Java 8 - Predefined Functional Interface - Function

Predefined Functional Interface - Function:
* Function will process something and can return anything.

Interface:
interface function(T,R) {
public R apply(T t);
}

T - Input type
R - Return type

Methods:

apply() - abstract method
andThen() - default method
compose() - default method
identity() - static method

Comments

Popular posts from this blog

How to set Java Object into JaxBElement ?

GitLab