T - Type representing a single element of the paged data setpublic interface PageIterator<T>
extends java.util.Iterator<java.util.Collection<T>>
PageIterator are primarily used with MoreSpliterators.ofPaged(PageIterator) to allow treating a
sequence of pages as a standard Java Stream
Implementations of PageIterator handle underlying traversal and advancement through a sequence of pages
MoreSpliterators.ofPaged(PageIterator)| Modifier and Type | Method and Description |
|---|---|
long |
estimateSize()
Returns an estimate of the number of elements that would be encountered by a complete traversal, or returns
Long.MAX_VALUE if infinite, unknown, or too expensive to compute. |
PageIterator<T> |
trySplit()
Utilized by spliterator implementations to partition via
Spliterator.trySplit() |
long estimateSize()
Long.MAX_VALUE if infinite, unknown, or too expensive to compute.
Used by spliterator implementations for Spliterator.estimateSize()
Long.MAX_VALUE if infinite, unknown, or too expensive to compute.PageIterator<T> trySplit()
Spliterator.trySplit()
If a non-null result is provided, it is expected that the elements covered by the result will not be covered by this PageProvider
PageProvider covering some portion of the elements, or null if this spliterator cannot
be split