Java 8 — Two Argument Functional Interfaces | Code Factory

Code Factory
1 min readMay 6, 2020

--

Index Page : Link

Reference Link : Link

Donate : Link

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.

  1. BiPredicate
  2. BiFunction
  3. BiConsumer

--

--

No responses yet