Class Sets.SetView<E>

  • All Implemented Interfaces:
    Iterable<E>, Collection<E>, Set<E>
    Enclosing class:

    public abstract static class Sets.SetView<E>
    extends AbstractSet<E>
    An unmodifiable view of a set which may be backed by other sets; this view will change as the backing sets do. Contains methods to copy the data into a new set which will then remain stable. There is usually no reason to retain a reference of type SetView; typically, you either use it as a plain Set, or immediately invoke immutableCopy() or copyInto(S) and forget the SetView itself.