Skip to content

Collections

Members Public

Streams and Iterables

In this short article, we'll explore various StreamSupport methods that allow us to wrap an Iterable instance as a stream of elements.

Streams and Iterables
Members Public

Checked Collection - stronger type safety

CheckedCollection helps to enforce strong type safety when mixing generic and non-generic code.

Checked Collection - stronger type safety
Members Public

Maintaining equals and compareTo contract

Any change in the collection being used should not impact the behavior of a class.

Maintaining equals and compareTo contract
Members Public

LRU Cache

Least recently used (LRU) eviction policy defines the eviction criteria to control the number of entries present in a cache.

LRU Cache