public class

ProxyListIterator

extends Object
implements ListIterator<E>
java.lang.Object
   ↳ org.apache.commons.collections.iterators.ProxyListIterator

This class is deprecated.
Use AbstractListIteratorDecorator. Will be removed in v4.0

Class Overview

A proxy ListIterator ListIterator which delegates its methods to a proxy instance.

Summary

Public Constructors
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.
Public Methods
void add(Object o)
Invokes the underlying add(Object) method.
ListIterator getListIterator()
Getter for property iterator.
boolean hasNext()
Invokes the underlying hasNext() method.
boolean hasPrevious()
Invokes the underlying hasPrevious() method.
Object next()
Invokes the underlying next() method.
int nextIndex()
Invokes the underlying nextIndex() method.
Object previous()
Invokes the underlying previous() method.
int previousIndex()
Invokes the underlying previousIndex() method.
void remove()
Invokes the underlying remove() method.
void set(Object o)
Invokes the underlying set(Object) method.
void setListIterator(ListIterator iterator)
Setter for property iterator.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.Iterator
From interface java.util.ListIterator

Public Constructors

public ProxyListIterator ()

Constructs a new ProxyListIterator that will not function until setListIterator is invoked.

public ProxyListIterator (ListIterator iterator)

Constructs a new ProxyListIterator that will use the given list iterator.

Parameters
iterator the list iterator to use

Public Methods

public void add (Object o)

Invokes the underlying add(Object) method.

Throws
NullPointerException if the underlying iterator is null

public ListIterator getListIterator ()

Getter for property iterator.

Returns
  • Value of property iterator.

public boolean hasNext ()

Invokes the underlying hasNext() method.

Throws
NullPointerException if the underlying iterator is null

public boolean hasPrevious ()

Invokes the underlying hasPrevious() method.

Throws
NullPointerException if the underlying iterator is null

public Object next ()

Invokes the underlying next() method.

Throws
NullPointerException if the underlying iterator is null

public int nextIndex ()

Invokes the underlying nextIndex() method.

Throws
NullPointerException if the underlying iterator is null

public Object previous ()

Invokes the underlying previous() method.

Throws
NullPointerException if the underlying iterator is null

public int previousIndex ()

Invokes the underlying previousIndex() method.

Throws
NullPointerException if the underlying iterator is null

public void remove ()

Invokes the underlying remove() method.

Throws
NullPointerException if the underlying iterator is null

public void set (Object o)

Invokes the underlying set(Object) method.

Throws
NullPointerException if the underlying iterator is null

public void setListIterator (ListIterator iterator)

Setter for property iterator.

Parameters
iterator New value of property iterator.