BinaryOperator Interface In Java 8

We also have BinaryOperator Interface in Java 8, that extends BiFunction<T, T, T> Functional interface.¬† BinaryOperator Interface doesn’t have any method same like UnaryOperator Interface...

UnaryOperator Interface in Java 8

UnaryOperator is the specialization of Function Interface for the case where the input parameter and return result are of the same type. [crayon-5923024ca1175860278983/] UnaryOperator doesn’t...

BiFunction Interface In Java 8

BiFunction Interface In Java 8 A BiFunction Interface is extension of Function Interface in java 8, it takes two parameters of Type T, V and...

Function Interface in Java 8

Function Interface in Java 8 A Function Interface in Java 8 takes an object of a type as an argument and returns another object of...

Supplier Functional Interface in Java 8

This interface is an opposite of Consumer interface. A Supplier Interface takes no parameters and returns an object. [crayon-5923024ca16fe828167814/] 1) Simple Example of Supplier interface [crayon-5923024ca1703379816447/]...

BiConsumer Interface In Java 8

We also have BiConsumer interface. BiConsumer interface take 2 arugments. A BiConsumer consumes 2 objects instead of one and doestn’t return anything. [crayon-5923024ca1809133180931/]    

Consumer Functional Interface In Java 8

A Consumer Interface represents an operation that accepts a single input argument and returns no result. The consumer accepts a single argument by calling its...

Functional Interfaces Types In Java 8

Java 8 has defined a lot of Functional Interfaces to be used extensively in lambda expressions. Following is the list of functional interfaces defined in...