public class AbstractListIteratorDecorator<E>
extends java.lang.Object
implements java.util.ListIterator<E>
All methods are forwarded to the decorated list iterator.
| Modifier and Type | Field and Description |
|---|---|
private java.util.ListIterator<E> |
iterator
The iterator being decorated
|
| Constructor and Description |
|---|
AbstractListIteratorDecorator(java.util.ListIterator<E> iterator)
Constructor that decorates the specified iterator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(E obj) |
protected java.util.ListIterator<E> |
getListIterator()
Gets the iterator being decorated.
|
boolean |
hasNext() |
boolean |
hasPrevious() |
E |
next() |
int |
nextIndex() |
E |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(E obj) |
private final java.util.ListIterator<E> iterator
public AbstractListIteratorDecorator(java.util.ListIterator<E> iterator)
iterator - the iterator to decorate, must not be nulljava.lang.IllegalArgumentException - if the collection is nullprotected java.util.ListIterator<E> getListIterator()
public boolean hasNext()
public E next()
public int nextIndex()
nextIndex in interface java.util.ListIterator<E>public boolean hasPrevious()
hasPrevious in interface java.util.ListIterator<E>public int previousIndex()
previousIndex in interface java.util.ListIterator<E>public void remove()