org.apache.commons.collections.map
public abstract class AbstractOrderedMapDecorator extends AbstractMapDecorator implements OrderedMap
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.
Since: Commons Collections 3.0
Version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $
Constructor Summary | |
---|---|
protected | AbstractOrderedMapDecorator()
Constructor only used in deserialization, do not use otherwise. |
AbstractOrderedMapDecorator(OrderedMap map)
Constructor that wraps (not copies).
|
Method Summary | |
---|---|
Object | firstKey() |
protected OrderedMap | getOrderedMap()
Gets the map being decorated.
|
Object | lastKey() |
MapIterator | mapIterator() |
Object | nextKey(Object key) |
OrderedMapIterator | orderedMapIterator() |
Object | previousKey(Object key) |
Since: Commons Collections 3.1
Parameters: map the map to decorate, must not be null
Throws: IllegalArgumentException if the collection is null
Returns: the decorated map