T
- resource typeR
- low level result typepublic class IteratorSupport<T,R>
extends java.lang.Object
implements java.util.Iterator<T>
PageBasedCollection
.
NOTE: this internal class is marked as public since it has been incorrectly
exposed in the public method PageBasedCollection.iterator()
, and it
will be changed to be package private in the next major version.
Modifier and Type | Field and Description |
---|---|
private java.util.Iterator<T> |
localResourceIterator
Used to iterate through a list of resources already retrieved.
|
private T |
resource |
(package private) PageIterator<T,R> |
resourcePageIterator
Used to iterate through the resource pages, dynamically making network
calls as needed.
|
Constructor and Description |
---|
IteratorSupport(PageIterator<T,R> resourcePageIterator) |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
T |
next() |
private T |
nextResource() |
void |
remove() |
final PageIterator<T,R> resourcePageIterator
private java.util.Iterator<T> localResourceIterator
private T resource
IteratorSupport(PageIterator<T,R> resourcePageIterator)