Java Collections and Streams

Holding data in the right Java collection, and transforming it without writing a loop.

  • 9 topics
  • 78 cards
  • 47 questions
  • Difficulty
Share

Collections

Choosing where data lives, and what that choice costs.

  • Three interfaces, many implementations, and which name to declare a variable with.

    8 cards · 5 qnot started
  • Two lists with the same methods and opposite costs.

    8 cards · 6 qnot started
  • Collections that refuse duplicates, and collections that decide what comes out next.

    8 cards · 5 qnot started
  • What a hash map does with a key, and what it costs when two keys collide.

    9 cards · 5 qnot started
  • Teaching Java an order, for one natural ordering and for many.

    9 cards · 5 qnot started

Pipelines

Type parameters, lambdas and streams, and the loops they remove.

  • Type parameters, what the compiler checks, and what is gone by runtime.

    9 cards · 5 qnot started
  • Passing behaviour as an argument, and the interface it is compiled against.

    9 cards · 5 qnot started
  • A pipeline over a source, what runs lazily, and what comes out of the end.

    10 cards · 6 qnot started
  • A return type that makes "there might be nothing" impossible to ignore.

    8 cards · 5 qnot started