E - the element typepublic abstract static class SetUtils.SetView<E> extends AbstractSet<E>
 If the decorated sets change, this view will change as well. The contents
 of this view can be transferred to another instance via the copyInto(Set)
 and toSet() methods.
| Constructor and Description | 
|---|
SetView()  | 
| Modifier and Type | Method and Description | 
|---|---|
<S extends Set<E>> | 
copyInto(S set)
Copies the contents of this view into the provided set. 
 | 
protected abstract Iterator<E> | 
createIterator()
Return an iterator for this view; the returned iterator is
 not required to be unmodifiable. 
 | 
Iterator<E> | 
iterator()  | 
int | 
size()  | 
Set<E> | 
toSet()
Returns a new set containing the contents of this view. 
 | 
equals, hashCode, removeAlladd, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic SetView()
public <S extends Set<E>> void copyInto(S set)
S - the set typeset - the set for copying the contentsprotected abstract Iterator<E> createIterator()
public int size()
size in interface Collection<E>size in interface Set<E>size in class AbstractCollection<E>Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.