Class AbstractHybridSet<E>

Type Parameters:
E - type of elements
All Implemented Interfaces:
Serializable, Iterable<E>, Collection<E>, Set<E>, SetEx<E>, Copyable<SetEx<E>>
Direct Known Subclasses:
HybridBitSet, HybridHashSet, HybridIndexableSet, HybridLinkedHashSet

public abstract class AbstractHybridSet<E> extends AbstractSetEx<E> implements Serializable
This set supports hybrid of two set implementations, where one is efficient for small set and another one is efficient for large set.

When the number of elements contained in this set succeeds a threshold, it will automatically upgrade the set implementation to the one that is efficient for large set. Moreover, empty sets and singleton sets are represented with just a reference.

Elements added to this set cannot be null.

By default, this set uses ArraySet for small set.

See Also: