thepointman.dev_

Courses / Java Collections

Maps Deep Dive

intermediate14 lessons

The hash table from first principles, then deep into HashMap: buckets, collision chains, the Java 8 treeification to Red-Black trees, the resize()/rehash cycle, and the Java 7 infinite loop bug under concurrent access. LinkedHashMap for LRU. TreeMap's NavigableMap guarantees. WeakHashMap and EnumMap.

// Lessons

  1. 01

    The Hash Table Data Structure — Arrays + Hash Functions from First Principles

    soon
  2. 02

    The hashCode() Contract — Consistency, Equality and Distribution

    soon
  3. 03

    HashMap: The Bucket Array and the Entry Chain

    soon
  4. 04

    HashMap: put() — Hashing, Bucketing and Collision Resolution

    soon
  5. 05

    HashMap: The Load Factor and When resize() Triggers

    soon
  6. 06

    HashMap: Java 8 Treeification — When Chains Become Red-Black Trees

    soon
  7. 07

    HashMap: resize() Internals — Rehashing and the Java 7 Infinite Loop

    soon
  8. 08

    HashMap: Why Null Gets Special Treatment

    soon
  9. 09

    HashMap: Thread-Safety — Why You Need ConcurrentHashMap

    soon
  10. 10

    LinkedHashMap: Maintaining Insertion Order with an Extra Linked List

    soon
  11. 11

    LinkedHashMap: Access-Order Mode and Building a Proper LRU Cache

    soon
  12. 12

    TreeMap: Red-Black Tree Properties — Self-Balancing Guarantees

    soon
  13. 13

    TreeMap: NavigableMap Operations — floorKey, ceilingKey, headMap, tailMap

    soon
  14. 14

    WeakHashMap and EnumMap — Specialised Maps for Specialised Needs

    soon