org.apache.commons.collections.iterators
public class AbstractMapIteratorDecorator extends Object implements MapIterator
All methods are forwarded to the decorated map iterator.
Since: Commons Collections 3.0
Version: $Revision: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $
| Field Summary | |
|---|---|
| protected MapIterator | iterator The iterator being decorated |
| Constructor Summary | |
|---|---|
| AbstractMapIteratorDecorator(MapIterator iterator)
Constructor that decorates the specified iterator.
| |
| Method Summary | |
|---|---|
| Object | getKey() |
| protected MapIterator | getMapIterator()
Gets the iterator being decorated.
|
| Object | getValue() |
| boolean | hasNext() |
| Object | next() |
| void | remove() |
| Object | setValue(Object obj) |
Parameters: iterator the iterator to decorate, must not be null
Throws: IllegalArgumentException if the collection is null
Returns: the decorated iterator