org.apache.commons.collections.iterators
public class ProxyListIterator extends Object implements ListIterator
Deprecated: Use AbstractListIteratorDecorator. Will be removed in v4.0
A proxy {@link ListIterator ListIterator} which delegates its methods to a proxy instance.Since: Commons Collections 2.0
Version: $Revision: 1.9 $ $Date: 2004/02/18 00:59:50 $
Constructor Summary | |
---|---|
ProxyListIterator()
Constructs a new ProxyListIterator that will not
function until {@link #setListIterator(ListIterator) setListIterator}
is invoked. | |
ProxyListIterator(ListIterator iterator)
Constructs a new ProxyListIterator that will use the
given list iterator.
|
Method Summary | |
---|---|
void | add(Object o)
Invokes the underlying {@link ListIterator#add(Object)} method.
|
ListIterator | getListIterator()
Getter for property iterator. |
boolean | hasNext()
Invokes the underlying {@link ListIterator#hasNext()} method.
|
boolean | hasPrevious()
Invokes the underlying {@link ListIterator#hasPrevious()} method.
|
Object | next()
Invokes the underlying {@link ListIterator#next()} method.
|
int | nextIndex()
Invokes the underlying {@link ListIterator#nextIndex()} method.
|
Object | previous()
Invokes the underlying {@link ListIterator#previous()} method.
|
int | previousIndex()
Invokes the underlying {@link ListIterator#previousIndex()} method.
|
void | remove()
Invokes the underlying {@link ListIterator#remove()} method.
|
void | set(Object o)
Invokes the underlying {@link ListIterator#set(Object)} method.
|
void | setListIterator(ListIterator iterator)
Setter for property iterator. |
ProxyListIterator
that will not
function until {@link #setListIterator(ListIterator) setListIterator}
is invoked.ProxyListIterator
that will use the
given list iterator.
Parameters: iterator the list iterator to use
Throws: NullPointerException if the underlying iterator is null
Returns: Value of property iterator.
Throws: NullPointerException if the underlying iterator is null
Throws: NullPointerException if the underlying iterator is null
Throws: NullPointerException if the underlying iterator is null
Throws: NullPointerException if the underlying iterator is null
Throws: NullPointerException if the underlying iterator is null
Throws: NullPointerException if the underlying iterator is null
Throws: NullPointerException if the underlying iterator is null
Throws: NullPointerException if the underlying iterator is null
Parameters: iterator New value of property iterator.