Class LowGarbageArrayIntegerMap<T>

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<Integer,T>
io.deephaven.base.LowGarbageArrayIntegerMap<T>
All Implemented Interfaces:
Serializable, Cloneable, Map<Integer,T>

public class LowGarbageArrayIntegerMap<T> extends HashMap<Integer,T>
A very simple Map for small maps with Integer keys (uses direct array access) that creates no garbage (except when expanding). This set only has one Iterator, which is reused. This set is not thread safe.

Note: This class extends HashMap rather than Map (or AbstractMap) only because one of the fields where we want to use it (sun.nio.ch.EPollSelectorImpl#fdToKey) is (improperly) declared as a HashMap rather than a Map.

See Also: