Java 8 – Two Argument Functional Interfaces | Code Factory


Index Page : Link

Donate : Link

Medium Blog : Link

Applications : 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

One thought on “Java 8 – Two Argument Functional Interfaces | Code Factory”

Leave a comment