Streams
Streams implement the pipeline pattern, chaining operations into a single flow.
Some common uses are filtering and mapping:
Generation
Stream From Array
Stream From Iterable
Iterables don't give support to streams by default, but there is a utility class for this:
Empty Stream
From Supplier
Builder
Iteration
From Other Streams
Closing Streams
In some cases the streams can be working with an IO data source, or some other source which should be closed after being used. For that reason streams extend the AutoCloseable interface.
Last updated
Was this helpful?