All methods are forwarded to the decorated map iterator.
| Modifier and Type | Field and Description |
|---|---|
| private final MapIterator | iterator
The iterator being decorated |
| Access | Constructor and Description |
|---|---|
| public | AbstractMapIteratorDecorator(final MapIterator<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 MapIterator | |
| public V | getValue()
Implements org. next().
|
| public boolean | hasNext()
Implements org. |
| public K | |
| public void | remove()
Implements org. Map (optional operation).
|
| public V | setValue(final V
the new value obj)Implements org. |
| iterator | back to summary |
|---|---|
| private final MapIterator<K, V> iterator The iterator being decorated | |
| AbstractMapIteratorDecorator | back to summary |
|---|---|
| public AbstractMapIteratorDecorator(final MapIterator<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
| |
| getMapIterator | back to summary |
|---|---|
| protected MapIterator 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.
| |
| next | back to summary |
|---|---|
| public K next() Implements org. Doc from org. Gets the next key from the
| |
| remove | back to summary |
|---|---|
| public void remove() 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).
| |