Tag Archives: java stream

Java 8+ Functional Programming :: Collections & Streams (2)

Structure of Java Stream Operations Any Java Stream operation has to have three components to make it work: a source one or more intermediate operations terminal operation Source –> Intermediate Operation 1 –> Intermediate Operation 2 –> … –> Terminal … Continue reading

Posted in functional interface, functional programming, java stream, lambda, lambda expression | Tagged , , , , | Leave a comment

Java 8+ Functional Programming :: Collections & Streams (1)

The Concept of a Collection A collection represents a group of objects, known as its elements.   The Collection Interface JDK 9 defines this interface as follows: public interface Collection extends Iterable { int size(); boolean isEmpty(); boolean contains(Object o); … Continue reading

Posted in functional interface, functional programming, java stream, lambda, lambda expression | Tagged , , , , | Leave a comment