org.apache.commons.collections.iterators
public class AbstractListIteratorDecorator extends Object implements ListIterator
All methods are forwarded to the decorated list iterator.
Since: Commons Collections 3.0
Version: $Revision: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $
Field Summary | |
---|---|
protected ListIterator | iterator The iterator being decorated |
Constructor Summary | |
---|---|
AbstractListIteratorDecorator(ListIterator iterator)
Constructor that decorates the specified iterator.
|
Method Summary | |
---|---|
void | add(Object obj) |
protected ListIterator | getListIterator()
Gets the iterator being decorated.
|
boolean | hasNext() |
boolean | hasPrevious() |
Object | next() |
int | nextIndex() |
Object | previous() |
int | previousIndex() |
void | remove() |
void | set(Object obj) |
Parameters: iterator the iterator to decorate, must not be null
Throws: IllegalArgumentException if the collection is null
Returns: the decorated iterator