Class ProxyListIterator
- java.lang.Object
-
- org.apache.commons.collections.iterators.ProxyListIterator
-
- All Implemented Interfaces:
java.util.Iterator,java.util.ListIterator
@Deprecated(since="2021-04-30") public class ProxyListIterator extends java.lang.Object implements java.util.ListIteratorDeprecated.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(java.util.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(java.lang.Object o)Deprecated.Invokes the underlyingListIterator.add(Object)method.java.util.ListIteratorgetListIterator()Deprecated.Getter for property iterator.booleanhasNext()Deprecated.Invokes the underlyingListIterator.hasNext()method.booleanhasPrevious()Deprecated.Invokes the underlyingListIterator.hasPrevious()method.java.lang.Objectnext()Deprecated.Invokes the underlyingListIterator.next()method.intnextIndex()Deprecated.Invokes the underlyingListIterator.nextIndex()method.java.lang.Objectprevious()Deprecated.Invokes the underlyingListIterator.previous()method.intpreviousIndex()Deprecated.Invokes the underlyingListIterator.previousIndex()method.voidremove()Deprecated.Invokes the underlyingListIterator.remove()method.voidset(java.lang.Object o)Deprecated.Invokes the underlyingListIterator.set(Object)method.voidsetListIterator(java.util.ListIterator iterator)Deprecated.Setter for property iterator.
-
-
-
Constructor Detail
-
ProxyListIterator
public ProxyListIterator()
Deprecated.Constructs a newProxyListIteratorthat will not function untilsetListIteratoris invoked.
-
ProxyListIterator
public ProxyListIterator(java.util.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(java.lang.Object o)
Deprecated.Invokes the underlyingListIterator.add(Object)method.- Specified by:
addin interfacejava.util.ListIterator- Throws:
java.lang.NullPointerException- if the underlying iterator is null
-
hasNext
public boolean hasNext()
Deprecated.Invokes the underlyingListIterator.hasNext()method.- Specified by:
hasNextin interfacejava.util.Iterator- Specified by:
hasNextin interfacejava.util.ListIterator- Throws:
java.lang.NullPointerException- if the underlying iterator is null
-
hasPrevious
public boolean hasPrevious()
Deprecated.Invokes the underlyingListIterator.hasPrevious()method.- Specified by:
hasPreviousin interfacejava.util.ListIterator- Throws:
java.lang.NullPointerException- if the underlying iterator is null
-
next
public java.lang.Object next()
Deprecated.Invokes the underlyingListIterator.next()method.- Specified by:
nextin interfacejava.util.Iterator- Specified by:
nextin interfacejava.util.ListIterator- Throws:
java.lang.NullPointerException- if the underlying iterator is null
-
nextIndex
public int nextIndex()
Deprecated.Invokes the underlyingListIterator.nextIndex()method.- Specified by:
nextIndexin interfacejava.util.ListIterator- Throws:
java.lang.NullPointerException- if the underlying iterator is null
-
previous
public java.lang.Object previous()
Deprecated.Invokes the underlyingListIterator.previous()method.- Specified by:
previousin interfacejava.util.ListIterator- Throws:
java.lang.NullPointerException- if the underlying iterator is null
-
previousIndex
public int previousIndex()
Deprecated.Invokes the underlyingListIterator.previousIndex()method.- Specified by:
previousIndexin interfacejava.util.ListIterator- Throws:
java.lang.NullPointerException- if the underlying iterator is null
-
remove
public void remove()
Deprecated.Invokes the underlyingListIterator.remove()method.- Specified by:
removein interfacejava.util.Iterator- Specified by:
removein interfacejava.util.ListIterator- Throws:
java.lang.NullPointerException- if the underlying iterator is null
-
set
public void set(java.lang.Object o)
Deprecated.Invokes the underlyingListIterator.set(Object)method.- Specified by:
setin interfacejava.util.ListIterator- Throws:
java.lang.NullPointerException- if the underlying iterator is null
-
getListIterator
public java.util.ListIterator getListIterator()
Deprecated.Getter for property iterator.- Returns:
- Value of property iterator.
-
setListIterator
public void setListIterator(java.util.ListIterator iterator)
Deprecated.Setter for property iterator.- Parameters:
iterator- New value of property iterator.
-
-