java.util.Iterator
, java.util.ListIterator
public class ProxyListIterator
extends java.lang.Object
implements java.util.ListIterator
ListIterator
which delegates its
methods to a proxy instance.Constructor | Description |
---|---|
ProxyListIterator() |
Deprecated.
Constructs a new
ProxyListIterator that will not
function until setListIterator
is invoked. |
ProxyListIterator(java.util.ListIterator iterator) |
Deprecated.
Constructs a new
ProxyListIterator that will use the
given list iterator. |
Modifier and Type | Method | Description |
---|---|---|
void |
add(java.lang.Object o) |
Deprecated.
Invokes the underlying
ListIterator.add(Object) method. |
java.util.ListIterator |
getListIterator() |
Deprecated.
Getter for property iterator.
|
boolean |
hasNext() |
Deprecated.
Invokes the underlying
ListIterator.hasNext() method. |
boolean |
hasPrevious() |
Deprecated.
Invokes the underlying
ListIterator.hasPrevious() method. |
java.lang.Object |
next() |
Deprecated.
Invokes the underlying
ListIterator.next() method. |
int |
nextIndex() |
Deprecated.
Invokes the underlying
ListIterator.nextIndex() method. |
java.lang.Object |
previous() |
Deprecated.
Invokes the underlying
ListIterator.previous() method. |
int |
previousIndex() |
Deprecated.
Invokes the underlying
ListIterator.previousIndex() method. |
void |
remove() |
Deprecated.
Invokes the underlying
ListIterator.remove() method. |
void |
set(java.lang.Object o) |
Deprecated.
Invokes the underlying
ListIterator.set(Object) method. |
void |
setListIterator(java.util.ListIterator iterator) |
Deprecated.
Setter for property iterator.
|
public ProxyListIterator()
ProxyListIterator
that will not
function until setListIterator
is invoked.public ProxyListIterator(java.util.ListIterator iterator)
ProxyListIterator
that will use the
given list iterator.iterator
- the list iterator to usepublic void add(java.lang.Object o)
ListIterator.add(Object)
method.add
in interface java.util.ListIterator
java.lang.NullPointerException
- if the underlying iterator is nullpublic boolean hasNext()
ListIterator.hasNext()
method.hasNext
in interface java.util.Iterator
hasNext
in interface java.util.ListIterator
java.lang.NullPointerException
- if the underlying iterator is nullpublic boolean hasPrevious()
ListIterator.hasPrevious()
method.hasPrevious
in interface java.util.ListIterator
java.lang.NullPointerException
- if the underlying iterator is nullpublic java.lang.Object next()
ListIterator.next()
method.next
in interface java.util.Iterator
next
in interface java.util.ListIterator
java.lang.NullPointerException
- if the underlying iterator is nullpublic int nextIndex()
ListIterator.nextIndex()
method.nextIndex
in interface java.util.ListIterator
java.lang.NullPointerException
- if the underlying iterator is nullpublic java.lang.Object previous()
ListIterator.previous()
method.previous
in interface java.util.ListIterator
java.lang.NullPointerException
- if the underlying iterator is nullpublic int previousIndex()
ListIterator.previousIndex()
method.previousIndex
in interface java.util.ListIterator
java.lang.NullPointerException
- if the underlying iterator is nullpublic void remove()
ListIterator.remove()
method.remove
in interface java.util.Iterator
remove
in interface java.util.ListIterator
java.lang.NullPointerException
- if the underlying iterator is nullpublic void set(java.lang.Object o)
ListIterator.set(Object)
method.set
in interface java.util.ListIterator
java.lang.NullPointerException
- if the underlying iterator is nullpublic java.util.ListIterator getListIterator()
public void setListIterator(java.util.ListIterator iterator)
iterator
- New value of property iterator.Copyright © 2001-2017 Apache Software Foundation. All Rights Reserved.