E - the element type
public 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 |
copyInto(S set)
Copies the contents of this view into the provided set.
|
protected abstract Iterator |
createIterator()
Return an iterator for this view; the returned iterator is not required to be unmodifiable.
|
Iterator |
iterator()
|
int |
size()
|
Set |
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, streamprotected abstract Iterator<E> createIterator()
public int size()
public <S extends Set<E>> void copyInto(S set)
S - the set type
set - the set for copying the contents