java.util.Iterator<E>, java.util.ListIterator<E>PredicatedList.PredicatedListIterator, TransformedList.TransformedListIteratorpublic class AbstractListIteratorDecorator<E>
extends java.lang.Object
implements java.util.ListIterator<E>
All methods are forwarded to the decorated list iterator.
| Constructor | Description |
|---|---|
AbstractListIteratorDecorator(java.util.ListIterator<E> iterator) |
Constructor that decorates the specified iterator.
|
| Modifier and Type | Method | 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) |
public AbstractListIteratorDecorator(java.util.ListIterator<E> iterator)
iterator - the iterator to decorate, must not be nulljava.lang.NullPointerException - if the iterator 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()
Copyright © 2001-2019 - Apache Software Foundation