Java 8 ObjIntConsumer Interface

10 months ago codedestine 0
In this tutorial, we will learn about Java 8 ObjIntConsumer interface. ObjIntConsumer Interface :- ObjIntConsumer ( java.util.function.ObjIntConsumer ) is a functional interface that has one abstract method declared in it. This interface is a specialised form of BiConsumer interface. Abstract method :-   void  accept ( T t , int value ) :- The abstract method accept ( T t Read More

Java 8 ObjDoubleConsumer Interface

10 months ago codedestine 0
In this tutorial, we will learn about Java 8 ObjDoubleConsumer interface. ObjDoubleConsumer Interface :- ObjDoubleConsumer ( java.util.function.ObjDoubleConsumer ) is a functional interface that has one abstract method declared in it. This interface is a specialised form of BiConsumer interface. Abstract method :-   void  accept ( T t , double value ) :- The abstract method accept ( T t , double Read More

Java 8 BiPredicate Interface

10 months ago codedestine 0
In this tutorial, we will learn about Java 8 BiPredicate interface. BiPredicate Interface :- BiPredicate ( java.util.function.BiPredicate ) is a functional interface that has one abstract method and three default method declared in it. Abstract method :-  boolean  test ( T  t, U u ) :- The abstract method test ( T t, U u ) is a functional Read More

Java 8 Predicate Interface

10 months ago codedestine 0
In this tutorial, we will learn about Java 8 Predicate interface. Predicate Interface :- Predicate ( java.util.function.Predicate ) is a functional interface that has one abstract method and three default method declared in it. Abstract method :-  boolean  test ( T  t ) :- The abstract method test ( T t ) is a functional method. It accepts one Read More

Java 8 DoubleConsumer Interface

10 months ago codedestine 0
In this tutorial, we will learn about Java 8 DoubleConsumer interface. DoubleConsumer Interface :- DoubleConsumer ( java.util.function.DoubleConsumer ) is a functional interface that has one abstract method and one default method declared in it. This interface is a specialised form of Consumer interface. Abstract method :-   void  accept ( double value ) :- The abstract method accept ( Read More

Java 8 LongConsumer Interface

10 months ago codedestine 0
In this tutorial, we will learn about Java 8 LongConsumer interface. LongConsumer Interface :- LongConsumer ( java.util.function.LongConsumer ) is a functional interface that has one abstract method and one default method declared in it. This interface is a specialised form of Consumer interface. Abstract method :-   void  accept ( long value ) :- The abstract method accept ( long value Read More

Java 8 IntConsumer Interface

10 months ago codedestine 0
In this tutorial, we will learn about Java 8 IntConsumer interface. IntConsumer Interface :- IntConsumer ( java.util.function.IntConsumer ) is a functional interface that has one abstract method and one default method declared in it. This interface is a specialised form of Consumer interface. Abstract method :-   void  accept ( int value ) :- The abstract method accept ( Read More

Java 8 BiConsumer Interface

10 months ago codedestine 0
In this tutorial, we will learn about Java 8 BiConsumer interface. BiConsumer Interface :- BiConsumer ( java.util.function.BiConsumer ) is a functional interface that has one abstract method and one default method declared in it. Abstract method :-   void  accept ( T t , U u ) :- The abstract method accept ( T t , U Read More

Java 8 Consumer Interface

10 months ago codedestine 0
In this tutorial, we will learn about Java 8 Consumer interface. Consumer Interface :- Consumer ( java.util.function.Consumer ) is a functional interface that has one abstract method and one default method declared in it. Abstract method :-   void  accept ( T t ) :- The abstract method accept ( T t ) is a functional method. Read More

Java 8 forEach method Example

10 months ago codedestine 0
In this tutorial, we will learn about new Java 8 forEach() method. Map’s forEach() method :- This method is called on map object, it takes BiConsumer as an argument and perform given action for each entry in the map until all entries have been processed or if action throws an exception. Syntax :-  default void forEach(BiConsumer<? Read More