
Java Streams did not need a method for every possible use case.
They needed an extension point.
Stream Gatherers give you built-in gatherers for common stateful operations, plus a way to define your own intermediate operations while staying inside the Stream pipeline.
Here is a simple fixed-size batching example with windowFixed 👇
Requires Java 24+.

English









