public class AbstractListIteratorDecorator<E> extends Object implements ListIterator<E>
All methods are forwarded to the decorated list iterator.
| Constructor and Description |
|---|
AbstractListIteratorDecorator(ListIterator<E> iterator)
Constructor that decorates the specified iterator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(E obj) |
protected 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic AbstractListIteratorDecorator(ListIterator<E> iterator)
iterator - the iterator to decorate, must not be nullNullPointerException - if the iterator is nullprotected ListIterator<E> getListIterator()
public boolean hasNext()
public E next()
public int nextIndex()
nextIndex in interface ListIterator<E>public boolean hasPrevious()
hasPrevious in interface ListIterator<E>public E previous()
previous in interface ListIterator<E>public int previousIndex()
previousIndex in interface ListIterator<E>public void remove()
public void set(E obj)
set in interface ListIterator<E>public void add(E obj)
add in interface ListIterator<E>Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.