next() method) we will call the list operation of the
service for the next response.
This iterator does not support removal of elements.
| Access | Constructor and Description |
|---|---|
| public | ResponseIterator(final REQUESTBUILDER
a builder object which can create requests for a list operation requestBuilder, final Function<RESPONSE, String> a function which can extract the next page token from a
response produced by a list operation nextPageTokenRetrievalFunction, final Function<RequestBuilderAndToken<REQUESTBUILDER>, REQUEST> a function which can build a request for a list operation based
on a builder object and a pagination token to use requestBuilderFunction, final Function<REQUEST, RESPONSE> a function which will call a list operation with a request and
return the response of the call pageRetrievalFunction)Constructs a new ResponseIterator. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public RESPONSE | |
| public void | remove()
Overrides default java. Removes from the underlying collection the last element returned by this iterator (optional operation). |
| ResponseIterator | back to summary |
|---|---|
| public ResponseIterator(final REQUESTBUILDER requestBuilder, final Function<RESPONSE, String> nextPageTokenRetrievalFunction, final Function<RequestBuilderAndToken<REQUESTBUILDER>, REQUEST> requestBuilderFunction, final Function<REQUEST, RESPONSE> pageRetrievalFunction) Constructs a new ResponseIterator.
| |
| hasNext | back to summary |
|---|---|
| public boolean hasNext() Implements java. Doc from java. Returns
| |
| next | back to summary |
|---|---|
| public RESPONSE next() Implements java. Doc from java. Returns the next element in the iteration.
| |
| remove | back to summary |
|---|---|
| public void remove() Overrides default java. Doc from java. Removes from the underlying collection the last element returned
by this iterator (optional operation). This method can be called
only once per call to The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method, unless an overriding class has specified a concurrent modification policy.
The behavior of an iterator is unspecified if this method is called
after a call to the
| |