Package com.complexible.common.collect
Interface ResettableIterator<T>
-
- All Superinterfaces:
java.lang.AutoCloseable
,CloseableIterator<T>
,java.util.Iterator<T>
- All Known Subinterfaces:
MarkResetIterator<T>
,PeekingSkippingIterator<T>
,RestrictedMarkResetIterator<T>
,SkippingIterator<T>
- All Known Implementing Classes:
AbstractSkippingIterator
,DelegatingSkippingIterator
,MarkResetSkippingIterator
,SpoolingMarkResetIterator
public interface ResettableIterator<T> extends CloseableIterator<T>
Iterator which can be reset to the first element.
- Since:
- 3.0
- Version:
- 3.0
- Author:
- Pavel Klinov
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.complexible.common.base.CloseableIterator
CloseableIterator.AbstractCloseableIterator<T>, CloseableIterator.DelegatingCloseableIterator<T>, CloseableIterator.EmptyCloseableIterator<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
reset()
Resets the iterator to the beginning so the followingIterator.next()
call will return the first element in this iteration.-
Methods inherited from interface com.complexible.common.base.CloseableIterator
close
-
-