~/talk

Exploring Collectors

Talkat Devnexus 2020 · 2020-02-19..02-21· [java]
slides:none on file

Argument: the JDK Collectors API replaces error-prone manual mutation with composable, parallel-safe reductions. Live-coded specifics show filter/map/reduce chains, using toList vs toUnmodifiableList to get safe immutable results, joining to emit comma-separated strings without trailing commas, and groupingBy with downstream collectors (mapping, counting, collectingAndThen) to build maps of lists, counts or transformed values. Example totals (doubled evens sum to 60) and set vs list ordering illustrate practical, working behavior.

AI-written summary · about

  1. 0:00Introduction
  2. 2:40Filter and Map
  3. 10:22Purity
  4. 17:18Reduce function
  5. 23:20To unmodifiable list
  6. 25:26Create people
  7. 28:45Collect
  8. 31:50Functional Programming
  9. 33:35Partitioning
  10. 38:27Grouping
  11. 48:45Counting
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.