Collections

Stream API

English

Overview

A mechanism for describing collection operations as a single chain.

Details

A collection-operations API that lets you declaratively chain operations such as filtering, mapping, and aggregation. Intermediate operations like filter or map aren't actually executed when called -- the API uses lazy evaluation, so elements are only processed once a terminal operation like collect or forEach is invoked.

More Programming terms