Stream Gatherers - Deep Dive with the Expert
Viktor Klang on April 3, 2025Have you ever wanted to perform an operation on a java.util.stream.Stream
only to find that the existing set of intermediate operations didn’t provide what you needed?
While the Streams API offers a rich set of operations out of the box, it was always envisioned to offer the capability for user-defined intermediate operations, yet at that time the right way to expose that hadn’t been discovered.
Until now… In this session, we’ll demonstrate Gatherers, an API made final through JEP 485 in Java 24, to create, use, re-use, and compose intermediate operations for java.util.stream.Stream
, enabling custom transformations as natural steps in your day-to-day stream processing.
Make sure to check the JavaOne 2025 playlist.