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) |
boolean |
hasNext() |
boolean |
hasPrevious() |
E |
next() |
int |
nextIndex() |
E |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(E obj) |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public AbstractListIteratorDecorator(ListIterator<E> iterator)
iterator
- the iterator to decorate, must not be nullNullPointerException
- if the iterator is nullpublic 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 © 2010 - 2020 Adobe. All Rights Reserved