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 |
AbstractDualBidiMap.View(Collection<E> coll,
AbstractDualBidiMap<K,V> parent)
Constructs a new view of the BidiMap.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
removeAll(Collection<?> coll) |
boolean |
retainAll(Collection<?> coll) |
protected final AbstractDualBidiMap<K,V> parent
protected AbstractDualBidiMap.View(Collection<E> coll, AbstractDualBidiMap<K,V> parent)
coll
- the collection view being decoratedparent
- the parent BidiMappublic 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 © 2001–2013 The Apache Software Foundation. All rights reserved.