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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s