Java 8 Function Interface

6 months ago codedestine 0
In this tutorial, we will learn about Java 8 Function interface. Function Interface :- Function ( java.util.function.Function ) is a functional interface that has one abstract method and two default method declared in it. It represents an algorithm where input parameter of one type is used to produce return value of same or another type. Abstract Read More

Java 8 Supplier Interface

6 months ago codedestine 0
In this tutorial, we will learn about Java 8 Supplier interface. Supplier Interface :- Supplier ( java.util.function.Supplier ) is a functional interface that has one abstract method declared in it. It represents an operation by which you can generate new values in the stream. Abstract method :-  T  get (  ) :- The abstract method get ( Read More

Java 8 LongSupplier Interface

6 months ago codedestine 0
In this tutorial, we will learn about Java 8 LongSupplier interface. LongSupplier Interface :- LongSupplier ( java.util.function.LongSupplier ) is a functional interface that has one abstract method declared in it. This interface is long producing primitive specialised form of Supplier interface.  Abstract method :-  long  getAsLong (  ) :- The abstract method getAsLong (  ) is a functional method. It does not Read More

Java 8 DoubleSupplier Interface

6 months ago codedestine 0
In this tutorial, we will learn about Java 8 DoubleSupplier interface. DoubleSupplier Interface :- DoubleSupplier ( java.util.function.DoubleSupplier ) is a functional interface that has one abstract method declared in it. This interface is double producing primitive specialised form of Supplier interface. Abstract method :-  double  getAsDouble (  ) :- The abstract method getAsDouble (  ) is a functional method. It does not Read More

Java 8 IntSupplier Interface

6 months ago codedestine 0
In this tutorial, we will learn about Java 8 IntSupplier interface. IntSupplier Interface :- IntSupplier ( java.util.function.IntSupplier ) is a functional interface that has one abstract method declared in it. This interface is int producing primitive specialised form of Supplier interface. Abstract method :-  int  getAsInt (  ) :- The abstract method getAsInt (  ) is a functional method. It does not accept any Read More

Java 8 BooleanSupplier Interface

6 months ago codedestine 0
In this tutorial, we will learn about Java 8 BooleanSupplier interface. BooleanSupplier Interface :- BooleanSupplier ( java.util.function.BooleanSupplier ) is a functional interface that has one abstract method declared in it. This interface is boolean producing primitive specialised form of Supplier interface. Abstract method :-  boolean  getAsBoolean (  ) :- The abstract method getAsBoolean (  ) is a functional method. It does not Read More

Java 8 DoublePredicate Interface

6 months ago codedestine 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

6 months ago codedestine 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

6 months ago codedestine 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

6 months ago codedestine 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