org.apache.commons.collections.map
Class AbstractOrderedMapDecorator
java.lang.Object
|
+--org.apache.commons.collections.map.AbstractMapDecorator
|
+--org.apache.commons.collections.map.AbstractOrderedMapDecorator
All Implemented Interfaces:
Map, OrderedMapKnown Direct Subclasses:
UnmodifiableOrderedMap
Provides a base decorator that enables additional functionality to be added
to an OrderedMap 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
AbstractOrderedMapDecorator
public AbstractOrderedMapDecorator(OrderedMap map)
Constructor that wraps (not copies).
- map - the map to decorate, must not be null
- if the collection is null
firstKey
public Object firstKey()
getOrderedMap
protected OrderedMap getOrderedMap()
Gets the map being decorated.
- the decorated map
lastKey
public Object lastKey()
mapIterator
public MapIterator mapIterator()
nextKey
public Object nextKey(Object key)
- key
orderedMapIterator
public OrderedMapIterator orderedMapIterator()
previousKey
public Object previousKey(Object key)
- key