Converts an iterator into a list iterator by caching the returned entries.
The ListIterator interface has additional useful methods
for navigation - previous() and the index methods.
This class allows a regular Iterator to behave as a
ListIterator . It achieves this by building a list internally
of as the underlying iterator is traversed.
The optional operations of ListIterator are not supported.
This class implements ResettableListIterator from Commons Collections 3.2.
since: Commons Collections 2.1 version: $Revision: 405925 $ $Date: 2006-05-12 23:52:43 +0100 (Fri, 12 May 2006) $ author: Morgan Delagrange author: Stephen Colebourne |