Attempts to modify it will result in an UnsupportedOperationException.
| Modifier and Type | Field and Description |
|---|---|
| private final MapIterator | iterator
The iterator being decorated |
| Access | Constructor and Description |
|---|---|
| private | UnmodifiableMapIterator(final MapIterator<? extends K, ? extends V>
the iterator to decorate iterator)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public K | getKey()
Implements org. next().
|
| 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 value)Implements org. |
| public static < the key type K, the value type V> MapIterator | Returns: a new unmodifiable map iteratorthe iterator to decorate iterator)Decorates the specified iterator such that it cannot be modified. |
| iterator | back to summary |
|---|---|
| private final MapIterator<? extends K, ? extends V> iterator The iterator being decorated | |
| UnmodifiableMapIterator | back to summary |
|---|---|
| private UnmodifiableMapIterator(final MapIterator<? extends K, ? extends V> iterator) Constructor.
| |
| 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
| |
| 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 value) Implements org. Doc from org. Sets the value associated with the current key (optional operation).
| |
| unmodifiableMapIterator | back to summary |
|---|---|
| public static <K, V> MapIterator Decorates the specified iterator such that it cannot be modified.
| |