GeeCON 2024: Ron Veen - Stream Gathers - The biggest change to Java Streams since 10 years

youtube.com 1 dzień temu


Streams were introduced in Java 8 in 2014. In 10 years we have only seen any insignificant changes to it. Until now, due to the fact that Java 22 introduced Stream Gatherers, which allows for more powerful intermediate operations. But it does not halt there, it besides comes with a complete API that allows us developers to make our own intermediate stream operations. And we all now, that the meat of stream operations is in the intermediate operations. Suddenly, your imagination is the only limitation. In this session I will introduce you to the fresh gatherers, and will deep dive into creating a customized gatherer ourselves, thus learning all the details of this fresh API.