Package com.palantir.util.paging
Class AbstractPagingIterable.PagingIterator<T,P extends BasicResultsPage<T>>
- java.lang.Object
-
- com.google.common.collect.UnmodifiableIterator<T>
-
- com.google.common.collect.AbstractIterator<T>
-
- com.palantir.util.paging.AbstractPagingIterable.PagingIterator<T,P>
-
- All Implemented Interfaces:
Iterator<T>
- Enclosing class:
- AbstractPagingIterable<T,P extends BasicResultsPage<T>>
public static class AbstractPagingIterable.PagingIterator<T,P extends BasicResultsPage<T>> extends com.google.common.collect.AbstractIterator<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PagingIterator(AbstractPagingIterable<T,P> iterable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected T
computeNext()
P
getLastFullPageProcessed()
As this iterator pages through all the results this call will get you the token you can use to get more data at a later date.-
Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peek
-
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
-
-
-
-
Constructor Detail
-
PagingIterator
protected PagingIterator(AbstractPagingIterable<T,P> iterable)
-
-
Method Detail
-
computeNext
protected T computeNext()
- Specified by:
computeNext
in classcom.google.common.collect.AbstractIterator<T>
-
getLastFullPageProcessed
public P getLastFullPageProcessed()
As this iterator pages through all the results this call will get you the token you can use to get more data at a later date.This value will be null until this iterator has passed the first page.
This value may be used even if this iterator throws an Exception.
-
-