org.apache.commons.collections.bidimap
Class AbstractBidiMapDecorator
java.lang.Object
|
+--org.apache.commons.collections.map.AbstractMapDecorator
|
+--org.apache.commons.collections.bidimap.AbstractBidiMapDecorator
All Implemented Interfaces:
Map, BidiMapKnown Direct Subclasses:
AbstractOrderedBidiMapDecorator, UnmodifiableBidiMap
Provides a base decorator that enables additional functionality to be added
to a BidiMap via decoration.
Methods are forwarded directly to the decorated map.
This implementation does not perform any special processing with the map views.
Instead it simply returns the set/collection from the wrapped map. This may be
undesirable, for example if you are trying to write a validating implementation
it would provide a loophole around the validation.
But, you might want that loophole, so this class is kept simple.
- Commons Collections 3.0
- Stephen Colebourne
AbstractBidiMapDecorator
protected AbstractBidiMapDecorator(BidiMap map)
Constructor that wraps (not copies).
- map - the map to decorate, must not be null
- if the collection is null
getBidiMap
protected BidiMap getBidiMap()
Gets the map being decorated.
- the decorated map
getKey
public Object getKey(Object value)
- value
inverseBidiMap
public BidiMap inverseBidiMap()
mapIterator
public MapIterator mapIterator()
removeValue
public Object removeValue(Object value)
- value