- All Implemented Interfaces:
- java.lang.Iterable<E>, java.util.Collection<E>, java.util.Set<E>
public final class UnmodifiableListSet<E>
extends java.util.AbstractSet<E>
A special unmodifiable implementation of Set which wraps a List.
It does not check for uniqueness! There are
several places in our implementation (Node.lookupAll and
ObservableSetWrapper are two such places) where we want to use
a List for speed of insertion and will be in a position to ensure
that the List is unique without having the overhead of hashing,
but want to present an unmodifiable Set in the public API.