| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.commons.collections.map.AbstractMapDecoratororg.apache.commons.collections.bidimap.AbstractBidiMapDecoratororg.apache.commons.collections.bidimap.AbstractOrderedBidiMapDecoratororg.apache.commons.collections.bidimap.AbstractSortedBidiMapDecoratororg.apache.commons.collections.bidimap.UnmodifiableSortedBidiMappublic final class UnmodifiableSortedBidiMapextends AbstractSortedBidiMapDecoratorimplements UnmodifiableSortedBidiMap to ensure it can't be altered.
Field Summary |
Fields inherited from class org.apache.commons.collections.map.AbstractMapDecorator | |
map | |
Method Summary | |
void |
|
static SortedBidiMap |
|
Set |
|
SortedMap |
|
BidiMap | |
OrderedBidiMap | |
SortedBidiMap | |
Set |
|
MapIterator |
|
OrderedMapIterator |
|
Object |
|
void |
|
Object |
|
Object |
|
SortedMap |
|
SortedMap |
|
Collection |
|
Methods inherited from class org.apache.commons.collections.bidimap.AbstractSortedBidiMapDecorator | |
comparator, getSortedBidiMap, headMap, inverseSortedBidiMap, subMap, tailMap | |
Methods inherited from class org.apache.commons.collections.bidimap.AbstractOrderedBidiMapDecorator | |
firstKey, getOrderedBidiMap, inverseOrderedBidiMap, lastKey, nextKey, orderedMapIterator, previousKey | |
Methods inherited from class org.apache.commons.collections.bidimap.AbstractBidiMapDecorator | |
getBidiMap, getKey, inverseBidiMap, mapIterator, removeValue | |
Methods inherited from class org.apache.commons.collections.map.AbstractMapDecorator | |
clear, containsKey, containsValue, entrySet, equals, get, getMap, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values | |
public static SortedBidiMap decorate(SortedBidiMap map)
Factory method to create an unmodifiable map. If the map passed in is already unmodifiable, it is returned.
- Parameters:
map- the map to decorate, must not be null
- Returns:
- an unmodifiable SortedBidiMap
public SortedMap headMap(Object toKey)
- Overrides:
- headMap in interface AbstractSortedBidiMapDecorator
public BidiMap inverseBidiMap()
- Specified by:
- inverseBidiMap in interface SortedBidiMap
- inverseBidiMap in interface OrderedBidiMap
- inverseBidiMap in interface BidiMap
- Overrides:
- inverseBidiMap in interface AbstractBidiMapDecorator
public OrderedBidiMap inverseOrderedBidiMap()
- Specified by:
- inverseOrderedBidiMap in interface OrderedBidiMap
- Overrides:
- inverseOrderedBidiMap in interface AbstractOrderedBidiMapDecorator
public SortedBidiMap inverseSortedBidiMap()
- Specified by:
- inverseSortedBidiMap in interface SortedBidiMap
- Overrides:
- inverseSortedBidiMap in interface AbstractSortedBidiMapDecorator
public MapIterator mapIterator()
Obtains aMapIteratorover the map. A map iterator is an efficient way of iterating over maps. There is no need to access the entry set or cast to Map Entry objects.IterableMap map = new HashedMap(); MapIterator it = map.mapIterator(); while (it.hasNext()) { Object key = it.next(); Object value = it.getValue(); it.setValue("newValue"); }
- Specified by:
- mapIterator in interface BidiMap
- mapIterator in interface IterableMap
- Overrides:
- mapIterator in interface AbstractBidiMapDecorator
- Returns:
- a map iterator
public OrderedMapIterator orderedMapIterator()
Obtains anOrderedMapIteratorover the map. A ordered map iterator is an efficient way of iterating over maps in both directions.BidiMap map = new TreeBidiMap(); MapIterator it = map.mapIterator(); while (it.hasNext()) { Object key = it.next(); Object value = it.getValue(); it.setValue("newValue"); Object previousKey = it.previous(); }
- Specified by:
- orderedMapIterator in interface OrderedMap
- Overrides:
- orderedMapIterator in interface AbstractOrderedBidiMapDecorator
- Returns:
- a map iterator
public Object removeValue(Object value)
- Specified by:
- removeValue in interface BidiMap
- Overrides:
- removeValue in interface AbstractBidiMapDecorator
public SortedMap subMap(Object fromKey,
Object toKey)
- Overrides:
- subMap in interface AbstractSortedBidiMapDecorator
public SortedMap tailMap(Object fromKey)
- Overrides:
- tailMap in interface AbstractSortedBidiMapDecorator