~/talk

Stream Gatherers – Write Your Own Stream Operations!

Talkat XtremeJ 2025 · on Tuesday, 2025-11-25· [java]
links:none on file
slides:none on file

A new API called Stream Gatherers, previewed in Java 22 (JEP 461), refined in Java 23 (JEP 473) and finalized in Java 24 (JEP 485), lets developers implement missing intermediate stream operations. Live code shows building a mapping gatherer (string→length), a stateful limiting gatherer with an AtomicInteger initializer that stops the source early, and a grouping example that produces sublists of three. Demonstrations include window fixed and window sliding, use of integrator and gathererOfSequential for stateful stages, GitHub demos for combiner and finisher, and working outputs printed to console.

AI-written summary · about

  1. 0:00Introduction to Stream API
  2. 4:06Stream Gatherers overview
  3. 5:31Using predefined gatherers
  4. 8:03Implementing a map gatherer
  5. 14:41Implementing a limit gatherer
  6. 20:52Advanced gatherer components
  7. 21:35Predefined gatherers list
  8. 22:19Conclusion and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.