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 SummaryConstructorsConstructorDescriptionAbstractListIteratorDecorator(ListIterator<E> iterator) Constructor that decorates the specified iterator.
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.IteratorforEachRemaining
- 
Constructor Details- 
AbstractListIteratorDecoratorConstructor 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 interface- ListIterator<E>
 
- 
getListIteratorGets the iterator being decorated.- Returns:
- the decorated iterator
 
- 
hasNext
- 
hasPrevious- Specified by:
- hasPreviousin interface- ListIterator<E>
 
- 
next
- 
nextIndex- Specified by:
- nextIndexin interface- ListIterator<E>
 
- 
previous- Specified by:
- previousin interface- ListIterator<E>
 
- 
previousIndex- Specified by:
- previousIndexin interface- ListIterator<E>
 
- 
remove
- 
set- Specified by:
- setin interface- ListIterator<E>
 
 
-