org.apache.commons.collections.bidimap
Class AbstractSortedBidiMapDecorator
- BidiMap, IterableMap, Map, OrderedBidiMap, OrderedMap, SortedBidiMap, SortedMap
public abstract class AbstractSortedBidiMapDecorator
Provides a base decorator that enables additional functionality to be added
to a SortedBidiMap 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 inverse 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.
$Revision: 1.4 $ $Date: 2004/02/18 00:57:39 $
clear , containsKey , containsValue , entrySet , equals , get , getMap , hashCode , isEmpty , keySet , put , putAll , remove , size , toString , values |
AbstractSortedBidiMapDecorator
public AbstractSortedBidiMapDecorator(SortedBidiMap map)
Constructor that wraps (not copies).
map
- the map to decorate, must not be null
comparator
public Comparator comparator()
getSortedBidiMap
protected SortedBidiMap getSortedBidiMap()
Gets the map being decorated.
headMap
public SortedMap headMap(Object toKey)
subMap
public SortedMap subMap(Object fromKey,
Object toKey)
tailMap
public SortedMap tailMap(Object fromKey)
Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.