~/talk

Do It Yourself: Collections

Talkat JetBrains Technology Day for Java 2020 · on Friday, 2020-07-10· [java]
slides:none on file

Extends Map to deliver two concrete collections: bag (MultiSet) counts occurrences per element and multimap (MultiValuedMap) maps keys to collections of values, implemented from scratch using only JDK data structures (HashMap + ArrayList) and driven by TDD-driven development with live unit tests. Adds concrete APIs—add, removeOne, count, putAll, asMap view—and demonstrates handling of duplicates, empty inputs, defensive copies and mutation-via-views; shows the code compiles and tests pass and discusses the knobs needed to make the new collections safe and usable.

AI-written summary · about

  1. 0:00Introduction
  2. 10:13Problem statement explained
  3. 27:40Creating collections
  4. 40:13Demo and examples
  5. 53:20Q&A and closing
~/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.