~/talk

Collections Refueled

Talkat Devoxx Belgium 2017 · 2017-11-06..11-10· [java]
slides:none on file

JDK 9 adds convenience factory methods (JEP 269): List.of, Set.of, Map.of (Map.ofEntries + entry for >10 pairs) that return new private implementations which are unmodifiable, disallow nulls, and throw on duplicate keys at creation. Implementations prioritize space efficiency (two-element set ~20 bytes vs ~152 bytes for a wrapped HashSet), use a randomized iteration order per JVM start, serialize via a stable proxy, and prompt proposed copyOf/stream collectors for later releases.

AI-written summary · about

  1. 0:00Start
  2. 3:43Java 9 - Collections Convenience Factory Methods
  3. 12:02Implementation Characteristics
  4. 21:17Randomized iteration Order
  5. 32:12Space Efficiency
  6. 38:18Serialization
  7. 43:30Summary
~/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.