Class AbstractListIteratorDecorator<E>
java.lang.Object
org.apache.commons.collections4.iterators.AbstractListIteratorDecorator<E>
- All Implemented Interfaces:
Iterator<E>,ListIterator<E>
Provides basic behaviour for decorating a list iterator with extra functionality.
All methods are forwarded to the decorated list iterator.
- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractListIteratorDecorator(ListIterator<E> iterator) Constructor that decorates the specified iterator. -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
AbstractListIteratorDecorator
Constructor that decorates the specified iterator.- Parameters:
iterator- the iterator to decorate, must not be null- Throws:
NullPointerException- if the iterator is null
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<E>
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<E>
-
previous
- Specified by:
previousin interfaceListIterator<E>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<E>
-
remove
public void remove() -
set
- Specified by:
setin interfaceListIterator<E>
-
add
- Specified by:
addin interfaceListIterator<E>
-