protected abstract static class AbstractDualBidiMap.View<K,V,E> extends AbstractCollectionDecorator<E>
Modifier and Type | Field and Description |
---|---|
protected AbstractDualBidiMap<K,V> |
parent
The parent map
|
Modifier | Constructor and Description |
---|---|
protected |
View(Collection<E> coll,
AbstractDualBidiMap<K,V> parent)
Constructs a new view of the BidiMap.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
equals(Object object) |
int |
hashCode() |
boolean |
removeAll(Collection<?> coll) |
boolean |
removeIf(Predicate<? super E> filter) |
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 . |
add, addAll, contains, containsAll, decorated, isEmpty, iterator, remove, setCollection, size, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
parallelStream, spliterator, stream
protected final AbstractDualBidiMap<K,V> parent
protected View(Collection<E> coll, AbstractDualBidiMap<K,V> parent)
coll
- the collection view being decoratedparent
- the parent BidiMappublic boolean equals(Object object)
equals
in interface Collection<E>
equals
in class Object
public int hashCode()
hashCode
in interface Collection<E>
hashCode
in class Object
public boolean removeIf(Predicate<? super E> filter)
removeIf
in interface Collection<E>
removeIf
in class AbstractCollectionDecorator<E>
public boolean removeAll(Collection<?> coll)
removeAll
in interface Collection<E>
removeAll
in class AbstractCollectionDecorator<E>
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.contains(Object)
.
retainAll
in interface Collection<E>
retainAll
in class AbstractCollectionDecorator<E>
public void clear()
clear
in interface Collection<E>
clear
in class AbstractCollectionDecorator<E>
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.