E - the element typepublic class UnmodifiableUnionSet<E> extends AbstractSet<E> implements Serializable
| Constructor and Description |
|---|
UnmodifiableUnionSet(Set<E> first,
Set<E> second)
Constructs a new set.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object o) |
Iterator<E> |
iterator() |
int |
size()
Since the view is live, this operation is no longer a constant time operation.
|
equals, hashCode, removeAlladd, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, clear, containsAll, isEmpty, remove, retainAll, spliterator, toArray, toArrayparallelStream, removeIf, streampublic int size()
size in interface Collection<E>size in interface Set<E>size in class AbstractCollection<E>public boolean contains(Object o)
contains in interface Collection<E>contains in interface Set<E>contains in class AbstractCollection<E>Copyright © 2018. All rights reserved.