Package nl.vpro.util

Interface CountedIterator<T>

All Superinterfaces:
AutoCloseable, CloseableIterator<T>, Counted, Iterator<T>
All Known Subinterfaces:
CountedPeekingIterator<T>
All Known Implementing Classes:
BasicWrappedIterator, CallbackIterator, CountedMaxOffsetIterator, LazyIterator, MergedSortedIterator, TailAdder, WrappedIterator

public interface CountedIterator<T> extends Iterator<T>, CloseableIterator<T>, Counted
An iterator that is also aware of the current position getCount(), and optionally of the size of the object that is iterated getSize(), and also optionally of a 'total' size (in case this iterator presents some sub-collection) getTotalSize().
Since:
0.31
Author:
Michiel Meeuwissen