Class Sets.SetView<E extends @Nullable Object>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
com.google.common.collect.Sets.SetView<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, Set<E>
Enclosing class:
Sets

public abstract static class Sets.SetView<E extends @Nullable Object> 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.
Since:
2.0
Author:
Kevin Bourrillion, Jared Levy, Chris Povirk