Package org.apache.commons.collections
Interface ResettableListIterator
- All Superinterfaces:
Iterator
,ListIterator
,ResettableIterator
- All Known Implementing Classes:
ArrayListIterator
,EmptyListIterator
,ListIteratorWrapper
,LoopingListIterator
,ObjectArrayListIterator
,ReverseListIterator
,SingletonListIterator
Defines a list iterator that can be reset back to an initial state.
This interface allows an iterator to be repeatedly reused.
- Since:
- Commons Collections 3.0
- Version:
- $Revision: 646777 $ $Date: 2008-04-10 14:33:15 +0200 (Thu, 10 Apr 2008) $
- Author:
- Stephen Colebourne
-
Method Summary
Modifier and TypeMethodDescriptionvoid
reset()
Resets the iterator back to the position at which the iterator was created.Methods inherited from interface java.util.Iterator
forEachRemaining
Methods inherited from interface java.util.ListIterator
add, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, set
-
Method Details
-
reset
void reset()Resets the iterator back to the position at which the iterator was created.- Specified by:
reset
in interfaceResettableIterator
-