Class ProxyListIterator
java.lang.Object
org.apache.commons.collections.iterators.ProxyListIterator
- All Implemented Interfaces:
Iterator
,ListIterator
Deprecated.
Use AbstractListIteratorDecorator. Will be removed in v4.0
A proxy
ListIterator
which delegates its
methods to a proxy instance.- Since:
- Commons Collections 2.0
- Version:
- $Revision: 646777 $ $Date: 2008-04-10 14:33:15 +0200 (Thu, 10 Apr 2008) $
- Author:
- Rodney Waldhoff
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Constructs a newProxyListIterator
that will not function untilsetListIterator
is invoked.ProxyListIterator
(ListIterator iterator) Deprecated.Constructs a newProxyListIterator
that will use the given list iterator. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Invokes the underlyingListIterator.add(Object)
method.Deprecated.Getter for property iterator.boolean
hasNext()
Deprecated.Invokes the underlyingListIterator.hasNext()
method.boolean
Deprecated.Invokes the underlyingListIterator.hasPrevious()
method.next()
Deprecated.Invokes the underlyingListIterator.next()
method.int
Deprecated.Invokes the underlyingListIterator.nextIndex()
method.previous()
Deprecated.Invokes the underlyingListIterator.previous()
method.int
Deprecated.Invokes the underlyingListIterator.previousIndex()
method.void
remove()
Deprecated.Invokes the underlyingListIterator.remove()
method.void
Deprecated.Invokes the underlyingListIterator.set(Object)
method.void
setListIterator
(ListIterator iterator) Deprecated.Setter for property iterator.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
ProxyListIterator
public ProxyListIterator()Deprecated.Constructs a newProxyListIterator
that will not function untilsetListIterator
is invoked. -
ProxyListIterator
Deprecated.Constructs a newProxyListIterator
that will use the given list iterator.- Parameters:
iterator
- the list iterator to use
-
-
Method Details
-
add
Deprecated.Invokes the underlyingListIterator.add(Object)
method.- Specified by:
add
in interfaceListIterator
- Throws:
NullPointerException
- if the underlying iterator is null
-
hasNext
public boolean hasNext()Deprecated.Invokes the underlyingListIterator.hasNext()
method.- Specified by:
hasNext
in interfaceIterator
- Specified by:
hasNext
in interfaceListIterator
- Throws:
NullPointerException
- if the underlying iterator is null
-
hasPrevious
public boolean hasPrevious()Deprecated.Invokes the underlyingListIterator.hasPrevious()
method.- Specified by:
hasPrevious
in interfaceListIterator
- Throws:
NullPointerException
- if the underlying iterator is null
-
next
Deprecated.Invokes the underlyingListIterator.next()
method.- Specified by:
next
in interfaceIterator
- Specified by:
next
in interfaceListIterator
- Throws:
NullPointerException
- if the underlying iterator is null
-
nextIndex
public int nextIndex()Deprecated.Invokes the underlyingListIterator.nextIndex()
method.- Specified by:
nextIndex
in interfaceListIterator
- Throws:
NullPointerException
- if the underlying iterator is null
-
previous
Deprecated.Invokes the underlyingListIterator.previous()
method.- Specified by:
previous
in interfaceListIterator
- Throws:
NullPointerException
- if the underlying iterator is null
-
previousIndex
public int previousIndex()Deprecated.Invokes the underlyingListIterator.previousIndex()
method.- Specified by:
previousIndex
in interfaceListIterator
- Throws:
NullPointerException
- if the underlying iterator is null
-
remove
public void remove()Deprecated.Invokes the underlyingListIterator.remove()
method.- Specified by:
remove
in interfaceIterator
- Specified by:
remove
in interfaceListIterator
- Throws:
NullPointerException
- if the underlying iterator is null
-
set
Deprecated.Invokes the underlyingListIterator.set(Object)
method.- Specified by:
set
in interfaceListIterator
- Throws:
NullPointerException
- if the underlying iterator is null
-
getListIterator
Deprecated.Getter for property iterator.- Returns:
- Value of property iterator.
-
setListIterator
Deprecated.Setter for property iterator.- Parameters:
iterator
- New value of property iterator.
-