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
* 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
Post a Comment