E
- the element typepublic abstract static class SetUtils.SetView<E>
extends java.util.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 java.util.Set<E>> |
copyInto(S set)
Copies the contents of this view into the provided set.
|
java.util.Iterator<E> |
iterator() |
int |
size() |
java.util.Set<E> |
toSet()
Returns a new set containing the contents of this view.
|
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
public java.util.Iterator<E> iterator()
public int size()
public <S extends java.util.Set<E>> void copyInto(S set)
S
- the set typeset
- the set for copying the contentspublic java.util.Set<E> toSet()
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"