Invoering
In Java 8+ is een functionele interface een interface die slechts één abstracte methode heeft (afgezien van de methoden van Object). Zie JLS §9.8. Functionele interfaces .
Lijst van standaard Java Runtime Library functionele interfaces per handtekening
| Parametersoorten | Retourtype | Koppel |
|---|
| () | leegte | uitvoerbare |
| () | T | Leverancier |
| () | boolean | BooleanSupplier |
| () | int | IntSupplier |
| () | lang | LongSupplier |
| () | dubbele | DoubleSupplier |
| (T) | leegte | Consumenten <T> |
| (T) | T | UnaryOperator <T> |
| (T) | R | Functie <T, R> |
| (T) | boolean | Predikaat <T> |
| (T) | int | ToIntFunction <T> |
| (T) | lang | ToLongFunction <T> |
| (T) | dubbele | ToDoubleFunction <T> |
| (T, T) | T | BinaryOperator <T> |
| (T, U) | leegte | BiConsumer <T, U> |
| (T, U) | R | BiFunction <T, U, R> |
| (T, U) | boolean | BiPredicate <T, U> |
| (T, U) | int | ToIntBiFunction <T, U> |
| (T, U) | lang | ToLongBiFunction <T, U> |
| (T, U) | dubbele | ToDoubleBiFunction <T, U> |
| (T, int) | leegte | ObjIntConsumer <T> |
| (T, lang) | leegte | ObjLongConsumer <T> |
| (T, dubbel) | leegte | ObjDoubleConsumer <T> |
| (Int) | leegte | IntConsumer |
| (Int) | R | IntFunction <R> |
| (Int) | boolean | IntPredicate |
| (Int) | int | IntUnaryOperator |
| (Int) | lang | IntToLongFunction |
| (Int) | dubbele | IntToDoubleFunction |
| (int, int) | int | IntBinaryOperator |
| (lang) | leegte | LongConsumer |
| (lang) | R | LongFunction <R> |
| (lang) | boolean | LongPredicate |
| (lang) | int | LongToIntFunction |
| (lang) | lang | LongUnaryOperator |
| (lang) | dubbele | LongToDoubleFunction |
| (lang Lang) | lang | LongBinaryOperator |
| (dubbele) | leegte | DoubleConsumer |
| (dubbele) | R | DoubleFunction <R> |
| (dubbele) | boolean | DoublePredicate |
| (dubbele) | int | DoubleToIntFunction |
| (dubbele) | lang | DoubleToLongFunction |
| (dubbele) | dubbele | DoubleUnaryOperator |
| (dubbel dubbel) | dubbele | DoubleBinaryOperator |