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
En esta página del sitio puede ver el video en línea Better Java Streams with Gatherers - Inside Java Newscast #57 de Duración hora minuto segunda en buena calidad , que subió el usuario Java 02 noviembre 2023, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 16,887 veces y le gustó 711 a los espectadores. Disfruta viendo!