protected abstract static class AbstractDualBidiMap.View<K,V extends AbstractCollectionDecorator,E> <E>
| Modifier and Type | Field and Description |
|---|---|
protected AbstractDualBidiMap |
parent
The parent map
|
| Modifier | Constructor and Description |
|---|---|
protected |
View(Collection
Constructs a new view of the BidiMap.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
|
boolean |
equals(Object
|
int |
hashCode()
|
boolean |
removeAll(Collection
|
boolean |
retainAll(Collection
|
add, addAll, contains, containsAll, decorated, isEmpty, iterator, remove, setCollection, size, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitparallelStream, removeIf, spliterator, streamprotected final AbstractDualBidiMap<K ,V> parent
protected View(Collection<E> coll, AbstractDualBidiMap <K ,V> parent)
coll - the collection view being decorated
parent - the parent BidiMap
public boolean equals(Objectobject)
public int hashCode()
public boolean removeAll(Collection<?> coll)
public boolean retainAll(Collection<?> coll)
This implementation iterates over the elements of this bidi map, checking each element in turn to see if it's contained in coll. If it's not contained, it's removed from this bidi map. As a consequence, it is advised to use a collection type for coll that provides a fast (e.g. O(1)) implementation of Collection.
public void clear()