|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.collections4.iterators.AbstractListIteratorDecorator<E>
public class AbstractListIteratorDecorator<E>
Provides basic behaviour for decorating a list iterator with extra functionality.
All methods are forwarded to the decorated list iterator.
| Constructor Summary | |
|---|---|
AbstractListIteratorDecorator(ListIterator<E> iterator)
Constructor that decorates the specified iterator. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractListIteratorDecorator(ListIterator<E> iterator)
iterator - the iterator to decorate, must not be null
IllegalArgumentException - if the collection is null| Method Detail |
|---|
protected ListIterator<E> getListIterator()
public boolean hasNext()
hasNext in interface Iterator<E>hasNext in interface ListIterator<E>public E next()
next in interface Iterator<E>next in interface ListIterator<E>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()
remove in interface Iterator<E>remove in interface ListIterator<E>public void set(E obj)
set in interface ListIterator<E>public void add(E obj)
add in interface ListIterator<E>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||