All methods are forwarded to the decorated map iterator.
| Modifier and Type | Field and Description |
|---|---|
| private final OrderedMapIterator | iterator
The iterator being decorated |
| Access | Constructor and Description |
|---|---|
| public | AbstractOrderedMapIteratorDecorator(final OrderedMapIterator<K, V>
the iterator to decorate, must not be null iterator)Constructor that decorates the specified iterator. |
| Modifier and Type | Method and Description |
|---|---|
| public K | getKey()
Implements org. next().
|
| protected OrderedMapIterator | |
| public V | getValue()
Implements org. next().
|
| public boolean | hasNext()
Implements org. |
| public boolean | hasPrevious()
Implements org. |
| public K | next()
Implements org. Map.
|
| public K | previous()
Implements org. Map.
|
| public void | remove()
Overrides default java. Implements org. Map (optional operation).
|
| public V | setValue(final V
the new value obj)Implements org. |
| iterator | back to summary |
|---|---|
| private final OrderedMapIterator<K, V> iterator The iterator being decorated | |
| AbstractOrderedMapIteratorDecorator | back to summary |
|---|---|
| public AbstractOrderedMapIteratorDecorator(final OrderedMapIterator<K, V> iterator) Constructor that decorates the specified iterator.
| |
| getKey | back to summary |
|---|---|
| public K getKey() Implements org. Doc from org. Gets the current key, which is the key returned by the last call
to
| |
| getOrderedMapIterator | back to summary |
|---|---|
| protected OrderedMapIterator Gets the iterator being decorated.
| |
| getValue | back to summary |
|---|---|
| public V getValue() Implements org. Doc from org. Gets the current value, which is the value associated with the last key
returned by
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements org. Doc from org. Checks to see if there are more entries still to be iterated.
| |
| hasPrevious | back to summary |
|---|---|
| public boolean hasPrevious() Implements org. Doc from org. Checks to see if there is a previous entry that can be iterated to.
| |
| next | back to summary |
|---|---|
| public K next() Implements org. Doc from org. Gets the next key from the
| |
| previous | back to summary |
|---|---|
| public K previous() Implements org. Doc from org. Gets the previous key from the
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Implements org. Doc from org. Removes the last returned key from the underlying
This method can be called once per call to
| |
| setValue | back to summary |
|---|---|
| public V setValue(final V obj) Implements org. Doc from org. Sets the value associated with the current key (optional operation).
| |