/collection-pipeline-java

Simple example of a collection pipeline in Java 8

Primary LanguageJava

Collection pipeline in Java

It requires Java 8 (it will not work in previous versions). Java 8 docs call pipeline to a sequence of aggregate operations. You can check the available operations at the Stream interface documentation.

Use (console)

Open a console in the directory and run $ ./gradlew --quiet run to compile and run the example (the --quiet is to prevent Gradle from writin so the output of the program is clearer).

Architecture

A UML sequence diagram of the example. UML sequence diagram