Tagged: java8

Supplier in Java8 is typically used as a factory methods to get objects 0

Supplier in java8 with code example

A Supplier in java8 is a functional interface with only one abstract method get() which returns an object.Supplier’s are usually used as Factory method’s.


Java Bifunction example

Introduction: BiFunction was introduced in java 8 as part of java.util.function. It accepts 2 arguments as inputs and returns an output. It was introduced to implement functional programming in java. Javadoc Interface BiFunction<T,U,R> Type Parameters: T -...

functional interfaces in java8 125

Java 8 Functional Interfaces

Functional interfaces provide target types for lambda expressions and method references.This post explains different functional interfaces of java8 with code examples.