Category: Java8

All the content which is specific to 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.

0

Binary operators in java8 with code examples

BinaryOperator 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.

0

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 -...

0

Java 8 Biconsumer example

Introduction: Biconsumer was introduced in java 8 as part of java.util.function. It accepts 2 arguments as inputs and does not return any output.It was introduced to implement functional programming in java. Javadoc: Functions in...

0

Consumer’s in java8

Consumers are functional interfaces which takes an argument as a parameter and returns nothing.It defines an abstract method accept() and returns void.They can also be used as an assignment target for lambda expression or method references.

0

Predicates in Java8 with Code examples

Predicates are often used in mathematics which means , a function which takes an argument and returns a boolean.In Java8 , predicates are meant to do the same.A Predicate is also a Lambda expression.

functional interfaces in java8 1

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.