Function Chaining in Java
A Function is primarily used along with the map operation on a Java stream. In this post, we will learn about Function chaining in Java 8.
A Function is primarily used along with the map operation on a Java stream. In this post, we will learn about Function chaining in Java 8.
We have used a Predicate in a Java stream. This post covers the methods in Predicate class which allow us to do Predicate chaining in Java 8.
Java 8 added three Summary Statistics classes viz., IntSummaryStatistics LongSummaryStatistics and DoubleSummaryStatistics used to collect statistics.
This post covers the default method resolution rules. These will be used when a class inherits more than one method with the same signature.
Optional is a container object added to Java 8+ that is used as a wrapper over some value. It provides a mechanism to represent “no result” for a method.
A method reference is a reference to an existing method. When a lambda expression just calls an existing method, we can use a Method Reference.
A sequence of primitive int-valued elements supporting sequential and parallel and aggregate operations. It is an int primitive specialization of Stream.
The Comparator is a comparison function in Java that imposes a total ordering on a collection of objects. The comparing is a static method in it