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.
|
Iterator<E> |
iterator() |
int |
size() |
Set<E> |
toSet()
Returns a new set containing the contents of this view.
|
equals, hashCode, removeAll
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
add, addAll, clear, contains, containsAll, isEmpty, remove, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public <S extends Set<E>> void copyInto(S set)
S
- the set typeset
- the set for copying the contentspublic int size()
size
in interface Collection<E>
size
in interface Set<E>
size
in class AbstractCollection<E>
Copyright © 2010 - 2020 Adobe. All Rights Reserved