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.
| Access | Constructor and Description |
|---|---|
| protected | |
| public | AbstractOrderedMapDecorator(final OrderedMap<K, V>
the map to decorate, must not be null map)Constructor that wraps (not copies). |
| Modifier and Type | Method and Description |
|---|---|
| protected OrderedMap | Returns: the decorated mapOverrides org. |
| public K | firstKey()
Implements org. |
| public K | lastKey()
Implements org. |
| public OrderedMapIterator | mapIterator()
Overrides org. Implements org. OrderedMapIterator over the map.
|
| public K | nextKey(final K
the key to search for next from key)Implements org. |
| public K | previousKey(final K
the key to search for previous from key)Implements org. |
| AbstractOrderedMapDecorator | back to summary |
|---|---|
| protected AbstractOrderedMapDecorator() Constructor only used in deserialization, do not use otherwise.
| |
| AbstractOrderedMapDecorator | back to summary |
|---|---|
| public AbstractOrderedMapDecorator(final OrderedMap<K, V> map) Constructor that wraps (not copies).
| |
| decorated | back to summary |
|---|---|
| protected OrderedMap 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.
| |
| 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.
| |