Use this tag for questions related to the use of the Stream API. It was introduced in Java 8 and supports functional-style operations on streams of values, such as filter-map-reduce pipelines on collections.
The Streams API is an API introduced in Java 8 that supports functional-style operations on streams of values, such as filter-map-reduce pipelines on collections. A primary design goal of the Streams API is to support parallel processing.
Features
- Mapping and flat-mapping
- Filtering
- Reducing and aggregating such as count, sum or average
- Collecting and grouping to
Map
,List
andSet
. - Summarizing