Java 8 — Two Argument Functional Interfaces | Code Factory
Need of Two-Argument (Bi) Functional Interfaces :
Normal Functional Interfaces (Predicate, Function and Consumer) can accept only one input argument. But sometimes our programming requirement is to accept two input arguments, then we should go for two-argument functional interfaces.
The following functional interfaces can take 2 input arguments.