~/talk

Collections Refueled

Talkat Jfokus 2018 · 2018-02-05..02-07· [java]
links:none on file
slides:none on file

Library-level factory methods List.of/Set.of/Map.of provide unmodifiable, null-disallowing collections with up to ten fixed overloads (to avoid varargs allocation) plus varargs-of-entries for maps; duplicate keys cause an IllegalArgumentException, and internal implementations choose compact storage (example: a two-element set drops from ~152 bytes of HashSet wrapper overhead to ~20 bytes). Iteration is intentionally nonstable via a randomized iteration order per JVM run, serialization uses a proxy form, and JDK 10 adds copyOf methods and unmodifiable collectors.

AI-written summary · about

  1. 0:00Start
  2. 0:32History of the Collections Framework in Java
  3. 5:00Java 9
  4. 5:10Collections Convenience Factory Methods
  5. 11:13Fixed Arg Overloads
  6. 13:49Creating an Unmodifiable List
  7. 21:17What Use Are Unmodifiable Collections
  8. 30:48Randomized Iteration Order
  9. 35:24Change the Iteration Order of Sets
  10. 38:32Duplicates Are Disallowed
  11. 42:34The Data Structure
  12. 44:37Serialization
  13. 46:14Jdk 10
~/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.