thepointman.dev_

Courses / Java Collections

Sets & Queues

intermediate8 lessons

HashSet (a HashMap with dummy values), LinkedHashSet, TreeSet (Red-Black delegation), and EnumSet (the fastest Set you've never used). PriorityQueue's binary heap, ArrayDeque as the correct Stack and Queue, and the complete Deque contract.

// Lessons

  1. 01

    The Set Contract — Uniqueness, equals() and hashCode()

    soon
  2. 02

    HashSet — A HashMap in Disguise

    soon
  3. 03

    LinkedHashSet — Insertion-Order Iteration from a HashSet

    soon
  4. 04

    TreeSet — Sorted Iteration via Red-Black Tree Delegation

    soon
  5. 05

    EnumSet — The Fastest Set You've Never Used

    soon
  6. 06

    The Queue and Deque Contracts — FIFO, LIFO and Double-Ended

    soon
  7. 07

    PriorityQueue — The Binary Heap Inside Java's Standard Library

    soon
  8. 08

    ArrayDeque — The Right Stack and Queue Implementation (Not LinkedList)

    soon