Class AbstractDualBidiMap.View<K,V,E>  
java.lang.Object
org.apache.commons.collections4.collection.AbstractCollectionDecorator<E>
org.apache.commons.collections4.bidimap.AbstractDualBidiMap.View<K,V,E>  
- Type Parameters:
- K- the type of the keys in the map.
- V- the type of the values in the map.
- E- the type of the elements in the collection.
- All Implemented Interfaces:
- Serializable,- Iterable<E>,- Collection<E>
- Direct Known Subclasses:
- AbstractDualBidiMap.EntrySet,- AbstractDualBidiMap.KeySet,- AbstractDualBidiMap.Values
- Enclosing class:
- AbstractDualBidiMap<K,- V> 
protected abstract static class AbstractDualBidiMap.View<K,V,E>  
extends AbstractCollectionDecorator<E>
Inner class View.
- Since:
- 3.0
- See Also:
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedView(Collection<E> coll, AbstractDualBidiMap<K, V> parent) Constructs a new instance.
- 
Method SummaryMethods inherited from class org.apache.commons.collections4.collection.AbstractCollectionDecoratoradd, addAll, contains, containsAll, decorated, isEmpty, iterator, remove, setCollection, size, toArray, toArray, toStringMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, spliterator, stream
- 
Field Details- 
parentThe parent map
 
- 
- 
Constructor Details- 
ViewConstructs a new instance.- Parameters:
- coll- the collection view being decorated
- parent- the parent BidiMap
 
 
- 
- 
Method Details- 
clear- Specified by:
- clearin interface- Collection<K>
- Overrides:
- clearin class- AbstractCollectionDecorator<E>
 
- 
equals
- 
hashCode
- 
removeAll- Specified by:
- removeAllin interface- Collection<K>
- Overrides:
- removeAllin class- AbstractCollectionDecorator<E>
 
- 
removeIf- Specified by:
- removeIfin interface- Collection<K>
- Overrides:
- removeIfin class- AbstractCollectionDecorator<E>
- Since:
- 4.4
 
- 
retainAllThis 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 forcollthat provides a fast (for example O(1)) implementation ofCollection.contains(Object).- Specified by:
- retainAllin interface- Collection<K>
- Overrides:
- retainAllin class- AbstractCollectionDecorator<E>
 
 
-