Class AbstractListIteratorDecorator<E>
java.lang.Object
org.apache.commons.collections4.iterators.AbstractListIteratorDecorator<E>
- Type Parameters:
E- the type of elements in this iterator.
- All Implemented Interfaces:
Iterator<E>,ListIterator<E>
- Direct Known Subclasses:
PredicatedList.PredicatedListIterator,TransformedList.TransformedListIterator
Provides basic behavior 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
clone, equals, finalize, 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
-
add
- Specified by:
addin interfaceListIterator<E>
-
getListIterator
Gets the iterator being decorated.- Returns:
- the decorated iterator
-
hasNext
-
hasPrevious
- Specified by:
hasPreviousin interfaceListIterator<E>
-
next
-
nextIndex
- Specified by:
nextIndexin interfaceListIterator<E>
-
previous
- Specified by:
previousin interfaceListIterator<E>
-
previousIndex
- Specified by:
previousIndexin interfaceListIterator<E>
-
remove
-
set
- Specified by:
setin interfaceListIterator<E>
-