Class LowGarbageArraySet<T>

All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, Set<T>

public class LowGarbageArraySet<T> extends HashSet<T>
A very simple Set for small sets (uses linear time algorithms) 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 HashSet rather than Set (or AbstractSet) only because one of the fields where we want to use it (sun.nio.ch.SelectorImpl#keys) is (improperly) declared as a HashSet rather than a Set.

See Also: