org.apache.commons.collections.iterators
public class AbstractIteratorDecorator extends Object implements Iterator
All methods are forwarded to the decorated iterator.
Since: Commons Collections 3.0
Version: $Revision: 1.4 $ $Date: 2004/02/18 00:59:50 $
| Field Summary | |
|---|---|
| protected Iterator | iterator The iterator being decorated |
| Constructor Summary | |
|---|---|
| AbstractIteratorDecorator(Iterator iterator)
Constructor that decorates the specified iterator.
| |
| Method Summary | |
|---|---|
| protected Iterator | getIterator()
Gets the iterator being decorated.
|
| boolean | hasNext() |
| Object | next() |
| void | remove() |
Parameters: iterator the iterator to decorate, must not be null
Throws: IllegalArgumentException if the collection is null
Returns: the decorated iterator