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.
| Access | Constructor and Description |
|---|---|
| protected | AbstractOrderedBidiMapDecorator(final OrderedBidiMap<K, V>
the map to decorate, must not be null map)Constructor that wraps (not copies). |
| AbstractOrderedBidiMapDecorator | back to summary |
|---|---|
| protected AbstractOrderedBidiMapDecorator(final OrderedBidiMap<K, V> map) Constructor that wraps (not copies).
| |
| decorated | back to summary |
|---|---|
| protected OrderedBidiMap Overrides org. Gets the map being decorated.
| |
| firstKey | back to summary |
|---|---|
| public K firstKey() Implements org. Doc from org. Gets the first key currently in this map.
| |
| inverseBidiMap | back to summary |
|---|---|
| public OrderedBidiMap Overrides org. Implements org. Doc from org. Gets a view of this map where the keys and values are reversed. Changes to one map will be visible in the other and vice versa. This enables both directions of the map to be accessed equally.
Implementations should seek to avoid creating a new object every time this
method is called. See
Implementations must return an
| |
| lastKey | back to summary |
|---|---|
| public K lastKey() Implements org. Doc from org. Gets the last key currently in this map.
| |
| mapIterator | back to summary |
|---|---|
| public OrderedMapIterator Overrides org. Implements org. Doc from org. Obtains an A ordered map iterator is an efficient way of iterating over maps in both directions.
| |
| nextKey | back to summary |
|---|---|
| public K nextKey(final K key) Implements org. Doc from org. Gets the next key after the one specified.
| |
| previousKey | back to summary |
|---|---|
| public K previousKey(final K key) Implements org. Doc from org. Gets the previous key before the one specified.
| |