Better Java Streams with Gatherers - Inside Java Newscast #57

Publié le: 02 novembre 2023
sur la chaîne: Java
16,887
711

Java's stream API needs more intermediate operations but instead of implementing some of them, Stream::gather, a new meta-operation, allows the JDK and us to implement all operations we need as Gatherers without overloading the `Stream` interface. Here's how to create Gatherers from an initializer, integrator, finisher, and combiner.

~~ Links ~~

JEP 461: https://openjdk.org/jeps/461
Implementing Gatherers:    • Implementing New Java Stream Operations  
Code for your experimentation: https://github.com/nipafx/demo-java-x...

VS Code extension: https://marketplace.visualstudio.com/...
Announcement: https://inside.java/2023/10/18/announ...

~~ Chapters ~~

0:00 Intro
1:03 Gatherer - Terminology
1:51 Gatherer - Integrator
2:59 Gatherer - Initializer
5:20 Gatherer - Finisher
7:01 Gatherer - Combiner
7:16 Gatherers
8:07 Oracle VS Code Extension
8:35 Outro

Tags: #Java #OpenJDK #InsideJava


Sur cette page du site, vous pouvez voir la vidéo en ligne Better Java Streams with Gatherers - Inside Java Newscast #57 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Java 02 novembre 2023, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 16,887 fois et il a aimé 711 téléspectateurs. Bon visionnage!