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
ConstructorDescriptionAbstractListIteratorDecorator
(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, wait
Methods 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:
add
in interfaceListIterator<E>
-
getListIterator
Gets the iterator being decorated.- Returns:
- the decorated iterator
-
hasNext
-
hasPrevious
- Specified by:
hasPrevious
in interfaceListIterator<E>
-
next
-
nextIndex
- Specified by:
nextIndex
in interfaceListIterator<E>
-
previous
- Specified by:
previous
in interfaceListIterator<E>
-
previousIndex
- Specified by:
previousIndex
in interfaceListIterator<E>
-
remove
-
set
- Specified by:
set
in interfaceListIterator<E>
-