Description
Functional interface is an interface with a single abstract method (SAM).
List of Core Functional Interfaces
| Interface Name | Arguments | Returns |
|---|---|---|
| BiConsumer<T,U> | (T, U) | void |
| BiFunction<T, U, R> | (T, U) | R |
| BinaryOperator<T> | (T, T) | T |
| BiPredicate<T,U> | (T, U) | boolean |
| Consumer<T> | T | void |
| Function<T, R> | T | R |
| Predicate<T> | T | boolean |
| Supplier<T> | T | |
| UnaryOperator<T> | T | T |
Leave a Reply