Class HeadIterator<T>
java.lang.Object
com.github.basking2.sdsai.itrex.iterators.HeadIterator<T>
- Type Parameters:
T
- The type.
- All Implemented Interfaces:
Iterator<T>
Return the first N elements of another iterator.
This is used to implement the
PagingIterator
.-
Constructor Summary
ConstructorDescriptionHeadIterator
(int n, Iterator<T> iterator) HeadIterator
(Iterator<T> iterator) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove