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) |
public AbstractListIteratorDecorator(ListIterator<E> iterator)
iterator
- the iterator to decorate, must not be nullIllegalArgumentException
- if the collection 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–2013 The Apache Software Foundation. All rights reserved.