~/talk

Collections Refueled

Talkat Devoxx US 2017 · 2017-03-21..03-23· [java]
slides:none on file

Covers concrete Java 8 and 9 changes: Java 8 adds lambda-capable default methods like forEach, removeIf optimized for ArrayList (reduces O(n^2) deletes to O(n)), replaceAll, List.sort with ArrayList override, Map.computeIfAbsent/computeIfPresent/forEach/replaceAll and Comparator combinators (comparing, thenComparing, nullsFirst) that simplify and safer comparator logic. Java 9 supplies static factories List.of / Set.of / Map.of (Map.ofEntries) that return compact, immutable collections, disallow nulls, throw on duplicate keys, use randomized iteration order for robustness, and significant space savings (example 152B → 20B).

AI-written summary · about

  1. 0:00Introduction
  2. 0:17Presentation Overview
  3. 1:22Collections in Java
  4. 3:27Collections Enhancements
  5. 5:28Enhanced Forloop
  6. 6:42Iterable
  7. 7:41RemoveIf
  8. 10:19ReplaceAll
  9. 12:49Sort
  10. 14:46Map
  11. 16:59Multimap
  12. 18:06Multimap Code
  13. 18:56New Map Methods
  14. 21:38Comparators
  15. 28:06History
  16. 30:45Design Goals
  17. 33:04Overview
  18. 35:25MapEntry
  19. 36:42Implementation Issues
  20. 39:32Entry
  21. 39:59Immutability
  22. 42:54Randomized iteration order
  23. 46:59Nulls
  24. 48:45Duplicate Entries
  25. 49:57Existing Collections
  26. 50:35Design Rationale
  27. 50:50Summary
~/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.