org.apache.commons.collections.iterators
public class ProxyListIterator extends Object implements ListIterator
Deprecated: Use AbstractListIteratorDecorator. Will be removed in v4.0
A proxyListIterator ListIterator which delegates its
methods to a proxy instance.
Since: Commons Collections 2.0
Version: $Revision: 646777 $ $Date: 2008-04-10 13:33:15 +0100 (Thu, 10 Apr 2008) $
| Constructor Summary | |
|---|---|
| ProxyListIterator()
Constructs a new ProxyListIterator that will not
function until 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 ListIterator#add(Object) method.
|
| ListIterator | getListIterator()
Getter for property iterator. |
| boolean | hasNext()
Invokes the underlying ListIterator#hasNext() method.
|
| boolean | hasPrevious()
Invokes the underlying ListIterator#hasPrevious() method.
|
| Object | next()
Invokes the underlying ListIterator#next() method.
|
| int | nextIndex()
Invokes the underlying ListIterator#nextIndex() method.
|
| Object | previous()
Invokes the underlying ListIterator#previous() method.
|
| int | previousIndex()
Invokes the underlying ListIterator#previousIndex() method.
|
| void | remove()
Invokes the underlying ListIterator#remove() method.
|
| void | set(Object o)
Invokes the underlying ListIterator#set(Object) method.
|
| void | setListIterator(ListIterator iterator)
Setter for property iterator. |
ProxyListIterator that will not
function until 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.