Interface Consumer2<A,B>

Type Parameters:
A - the type of first parameter received by the function
B - the type of second parameter received by the function
All Superinterfaces:
Recoverable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Consumer2<A,B> extends Recoverable

This interface represents a function that receives two parameters but it doesn't generate any result.

It's like a Function2<A, B, Unit>