Iterators this is accomplished by caching the returned elements. This class can also be used to simply add {@link org.apache.commons.collections4.ResettableIterator ResettableIterator}functionality to a given {@link ListIterator}. 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 for plain Iterators.
This class implements ResettableListIterator from Commons Collections 3.2. @since 2.1 @version $Id: ListIteratorWrapper.java 1477802 2013-04-30 20:01:28Z tn $
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |