~/talk

Exploring Collectors: A Powerful Utility Class in the JDK

Talkat Developer Summit 2020 · 2020-11-21..11-22· [java]
slides:none on file

Shows how java.util.stream.Collectors solves reduce problems: use toList and toUnmodifiableList to avoid shared-mutable accumulation, use Collectors.joining(",") to build comma‑separated uppercase names without trailing commas, use partitioningBy for boolean splits and groupingBy + mapping to bucket by name or age, use collectingAndThen(counting(), Long::intValue) to get int counts, and mentions filtering, flatMapping and Java 14 teeing; recommends unit tests and refactor-from-imperative approach.

AI-written summary · about

  1. 0:00Introduction to Collectors
  2. 6:45Why use Collectors
  3. 11:18Basic Collector functions
  4. 18:23Partitioning collections
  5. 22:17Grouping collections
  6. 31:58Advanced grouping with mapping
  7. 39:47Complex transformations
  8. 47:07Flat mapping and teeing
  9. 51:02Refactoring with tests
~/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.