public abstract static class Sets.SetView<E> extends AbstractSet<E>
SetView; typically, you either use it as a plain
Set, or immediately invoke
copyInto(S)and forget the
|Modifier and Type||Method and Description|
Copies the current contents of this set view into an existing set.
Returns an immutable copy of the current contents of this set view.
equals, hashCode, removeAll
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, retainAll, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public ImmutableSet<E> immutableCopy()
Warning: this may have unexpected results if a backing set of
this view uses a nonstandard notion of equivalence, for example if it is
TreeSet using a comparator that is inconsistent with
public <S extends Set<E>> S copyInto(S set)
set.addAll(this), assuming that all the sets involved are based on the same notion of equivalence.
set, for convenience
Copyright © 2010-2015. All Rights Reserved.