The Stream API
The Stream API is your best tool to process your in-memory data following a map/filter/reduce approach.
The tutorials in this series are listed below. They will guide you all through the Stream API, starting at the basic concepts all the way to collector design and parallel streams.
Processing Data in Memory Using the Stream API
Implementing the map-filter-reduce algorithm
Adding Intermediate Operations on a Stream
Deep-diving into the intermediate operations of the Stream API.
Patterns to create the stream you need.
Reducing a Stream
Reducing streams with a binary operator.
Adding a Terminal Operation on a Stream
Reducing a stream without the reduce method.
Finding the Characteristics of a Stream
Understanding the characteristics of a stream
Using a Collector as a Terminal Operation
Collecting a stream in a mutable container using a collector.
Creating Your Own Collector
Creating a collector by using the Collectors factory class.
Implementing the Collector Interface
Creating a collector by implementing the Collector interface.
Introducing the Optional class to model method that cannot produce a value.
Going faster by leveraging the parallel streams.