Class AbstractDualBidiMap.View<K,V,E>
- java.lang.Object
 - 
- org.apache.openjpa.lib.util.collections.AbstractCollectionDecorator<E>
 - 
- org.apache.openjpa.lib.util.collections.AbstractDualBidiMap.View<K,V,E>
 
 
 
- 
- 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.- See Also:
 - Serialized Form
 
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected AbstractDualBidiMap<K,V>parentThe parent map 
- 
Constructor Summary
Constructors Modifier Constructor Description protectedView(Collection<E> coll, AbstractDualBidiMap<K,V> parent)Constructs a new view of the BidiMap. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleanequals(Object object)inthashCode()booleanremoveAll(Collection<?> coll)booleanremoveIf(Predicate<? super E> filter)booleanretainAll(Collection<?> coll)- 
Methods inherited from class org.apache.openjpa.lib.util.collections.AbstractCollectionDecorator
add, addAll, contains, containsAll, decorated, isEmpty, iterator, remove, setCollection, size, toArray, toArray, toString 
- 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface java.util.Collection
parallelStream, spliterator, stream, toArray 
 - 
 
 - 
 
- 
- 
Field Detail
- 
parent
protected final AbstractDualBidiMap<K,V> parent
The parent map 
 - 
 
- 
Constructor Detail
- 
View
protected View(Collection<E> coll, AbstractDualBidiMap<K,V> parent)
Constructs a new view of the BidiMap.- Parameters:
 coll- the collection view being decoratedparent- the parent BidiMap
 
 - 
 
- 
Method Detail
- 
equals
public boolean equals(Object object)
- Specified by:
 equalsin interfaceCollection<K>- Overrides:
 equalsin classObject
 
- 
hashCode
public int hashCode()
- Specified by:
 hashCodein interfaceCollection<K>- Overrides:
 hashCodein classObject
 
- 
removeIf
public boolean removeIf(Predicate<? super E> filter)
- Specified by:
 removeIfin interfaceCollection<K>- Overrides:
 removeIfin classAbstractCollectionDecorator<E>- Since:
 - 4.4
 
 
- 
removeAll
public boolean removeAll(Collection<?> coll)
- Specified by:
 removeAllin interfaceCollection<K>- Overrides:
 removeAllin classAbstractCollectionDecorator<E>
 
- 
retainAll
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 forcollthat provides a fast (e.g. O(1)) implementation ofCollection.contains(Object).- Specified by:
 retainAllin interfaceCollection<K>- Overrides:
 retainAllin classAbstractCollectionDecorator<E>
 
- 
clear
public void clear()
- Specified by:
 clearin interfaceCollection<K>- Overrides:
 clearin classAbstractCollectionDecorator<E>
 
 - 
 
 -