/Java8CollectorsLab

Experiment with custom collectors.

Primary LanguageJava

Java8CollectorsLab

Experimenting with custom collectors by creating statistics on Employees.


Java 8 Streams provide many reduction operations:

But these are terminal operations and to perform such aggregates, the source needs to be Streamed repeatedly for each operation.

Stats collector is a good example to collect various statistics about any subject{Twitter Feed, Employees...etc} in a single iteration using Streams.