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, removeAll
add, addAll, clear, containsAll, isEmpty, remove, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, addAll, clear, containsAll, isEmpty, remove, retainAll, spliterator, toArray, toArray
parallelStream, removeIf, stream
public 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 © 2019. All rights reserved.