newszine

Java 8 DoublePredicate Interface

7 years ago Lalit Bhagtani 0
In this tutorial, we will learn about Java 8 DoublePredicate interface. DoublePredicate Interface :- DoublePredicate ( java.util.function.DoublePredicate ) is a functional interface that has one abstract method and three default method declared in it. This interface is a specialised form of Predicate interface. Abstract method :-  boolean  test ( double value ) :- The abstract method test ( double value ) is a functional Read More

Java 8 LongPredicate Interface

7 years ago Lalit Bhagtani 0
In this tutorial, we will learn about Java 8 LongPredicate interface. LongPredicate Interface :- LongPredicate ( java.util.function.LongPredicate ) is a functional interface that has one abstract method and three default method declared in it. This interface is a specialised form of Predicate interface. Abstract method :-  boolean  test ( long value ) :- The abstract method test ( long value ) is a functional Read More

Java 8 IntPredicate Interface

7 years ago Lalit Bhagtani 0
In this tutorial, we will learn about Java 8 IntPredicate interface. IntPredicate Interface :- IntPredicate ( java.util.function.IntPredicate ) is a functional interface that has one abstract method and three default method declared in it. This interface is a specialised form of Predicate interface. Abstract method :-  boolean  test ( int  value ) :- The abstract method test ( int value ) is a functional method. Read More

Java 8 Stream allMatch, anyMatch & noneMatch method Example

7 years ago Lalit Bhagtani 0
In this tutorial, we will learn about Java 8 stream allMatch(), anyMatch() and noneMatch() method. allMatch() Method :- This method takes one Predicate as an argument and check whether all elements of this stream match the given predicate. If all elements matches then return true otherwise return false. If the stream is empty then true is Read More

Java 8 Stream min & max method Example

7 years ago Lalit Bhagtani 0
In this tutorial, we will learn about Java 8 stream min() and max() method. min() Method :- This method takes one Comparator as an argument and return the minimum element of the stream. Syntax :-  Optional<T> min(Comparator<? super T> comparator) Reference :-  min() method JavaDocs Problem Statement :- You have given a list of integers, find the minimum Read More

Java 8 ObjLongConsumer Interface

7 years ago Lalit Bhagtani 0
In this tutorial, we will learn about Java 8 ObjLongConsumer interface. ObjLongConsumer Interface :- ObjLongConsumer ( java.util.function.ObjLongConsumer ) 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 , long value ) :- The abstract method accept ( Read More

Java 8 ObjIntConsumer Interface

7 years ago Lalit Bhagtani 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

7 years ago Lalit Bhagtani 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

7 years ago Lalit Bhagtani 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

7 years ago Lalit Bhagtani 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