Class ProxyListIterator
- java.lang.Object
-
- org.apache.commons.collections.iterators.ProxyListIterator
-
- All Implemented Interfaces:
Iterator,ListIterator
@Deprecated(since="2021-04-30") public class ProxyListIterator extends Object implements ListIterator
Deprecated.Use AbstractListIteratorDecorator. Will be removed in v4.0A proxyListIteratorwhich delegates its methods to a proxy instance.- Since:
- Commons Collections 2.0
-
-
Constructor Summary
Constructors Constructor Description ProxyListIterator()Deprecated.Constructs a newProxyListIteratorthat will not function untilsetListIteratoris invoked.ProxyListIterator(ListIterator iterator)Deprecated.Constructs a newProxyListIteratorthat will use the given list iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(Object o)Deprecated.Invokes the underlyingListIterator.add(Object)method.ListIteratorgetListIterator()Deprecated.Getter for property iterator.booleanhasNext()Deprecated.Invokes the underlyingListIterator.hasNext()method.booleanhasPrevious()Deprecated.Invokes the underlyingListIterator.hasPrevious()method.Objectnext()Deprecated.Invokes the underlyingListIterator.next()method.intnextIndex()Deprecated.Invokes the underlyingListIterator.nextIndex()method.Objectprevious()Deprecated.Invokes the underlyingListIterator.previous()method.intpreviousIndex()Deprecated.Invokes the underlyingListIterator.previousIndex()method.voidremove()Deprecated.Invokes the underlyingListIterator.remove()method.voidset(Object o)Deprecated.Invokes the underlyingListIterator.set(Object)method.voidsetListIterator(ListIterator iterator)Deprecated.Setter for property iterator.-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
ProxyListIterator
public ProxyListIterator()
Deprecated.Constructs a newProxyListIteratorthat will not function untilsetListIteratoris invoked.
-
ProxyListIterator
public ProxyListIterator(ListIterator iterator)
Deprecated.Constructs a newProxyListIteratorthat will use the given list iterator.- Parameters:
iterator- the list iterator to use
-
-
Method Detail
-
add
public void add(Object o)
Deprecated.Invokes the underlyingListIterator.add(Object)method.- Specified by:
addin interfaceListIterator- Throws:
NullPointerException- if the underlying iterator is null
-
hasNext
public boolean hasNext()
Deprecated.Invokes the underlyingListIterator.hasNext()method.- Specified by:
hasNextin interfaceIterator- Specified by:
hasNextin interfaceListIterator- Throws:
NullPointerException- if the underlying iterator is null
-
hasPrevious
public boolean hasPrevious()
Deprecated.Invokes the underlyingListIterator.hasPrevious()method.- Specified by:
hasPreviousin interfaceListIterator- Throws:
NullPointerException- if the underlying iterator is null
-
next
public Object next()
Deprecated.Invokes the underlyingListIterator.next()method.- Specified by:
nextin interfaceIterator- Specified by:
nextin interfaceListIterator- Throws:
NullPointerException- if the underlying iterator is null
-
nextIndex
public int nextIndex()
Deprecated.Invokes the underlyingListIterator.nextIndex()method.- Specified by:
nextIndexin interfaceListIterator- Throws:
NullPointerException- if the underlying iterator is null
-
previous
public Object previous()
Deprecated.Invokes the underlyingListIterator.previous()method.- Specified by:
previousin interfaceListIterator- Throws:
NullPointerException- if the underlying iterator is null
-
previousIndex
public int previousIndex()
Deprecated.Invokes the underlyingListIterator.previousIndex()method.- Specified by:
previousIndexin interfaceListIterator- Throws:
NullPointerException- if the underlying iterator is null
-
remove
public void remove()
Deprecated.Invokes the underlyingListIterator.remove()method.- Specified by:
removein interfaceIterator- Specified by:
removein interfaceListIterator- Throws:
NullPointerException- if the underlying iterator is null
-
set
public void set(Object o)
Deprecated.Invokes the underlyingListIterator.set(Object)method.- Specified by:
setin interfaceListIterator- Throws:
NullPointerException- if the underlying iterator is null
-
getListIterator
public ListIterator getListIterator()
Deprecated.Getter for property iterator.- Returns:
- Value of property iterator.
-
setListIterator
public void setListIterator(ListIterator iterator)
Deprecated.Setter for property iterator.- Parameters:
iterator- New value of property iterator.
-
-