Function programming in Java 17
Functional interfaces:
Interface
Method
Return type
Supplier<T>
get()
T
Consumer<T>
accept(T)
void
<BiConsumer<T, U>
accept(T, U)
T
Predicate<T>
test(T)
boolean
BiPreidcate<T, U>
test(T, U)
boolean
Function<T, R>
apply(T)
R
BiFunction<T, U, R>
apply(T, U)
R
UnaryOperator<T>
apply(T)
T
BinaryOperator<T>
apply(T, T)
T
For setting development for Java 17, see...
Java
Maven
1521