Iterator<List<T>>, GoPayPaginatedListIterator<T>public class PaginatedListIterator<T extends SimpleModel> extends GoPayResponse implements GoPayPaginatedListIterator<T>
| Constructor | Description |
|---|---|
PaginatedListIterator(RetrofitRequestBuilderPaginated lastBuilder,
long timeoutMilliSec,
Backoff backoff) |
| Modifier and Type | Method | Description |
|---|---|---|
Boolean |
getHasMore() |
|
List<T> |
getItems() |
|
RetrofitRequestBuilderPaginated |
getLastBuilder() |
|
BaseId |
getNextCursor() |
|
boolean |
hasNext() |
|
List<T> |
next() |
Get a next page from API if it has more pages.
|
void |
remove() |
|
GoPayPaginatedListIterator<T> |
reverse() |
getIdempotencyStatus, setIdempotencyStatusforEachRemainingpublic PaginatedListIterator(RetrofitRequestBuilderPaginated lastBuilder, long timeoutMilliSec, Backoff backoff)
public boolean hasNext()
hasNext in interface GoPayPaginatedListIterator<T extends SimpleModel>hasNext in interface Iterator<T extends SimpleModel>public List<T> next()
next in interface GoPayPaginatedListIterator<T extends SimpleModel>next in interface Iterator<T extends SimpleModel>public void remove()
remove in interface Iterator<T extends SimpleModel>public GoPayPaginatedListIterator<T> reverse()
reverse in interface GoPayPaginatedListIterator<T extends SimpleModel>public Boolean getHasMore()
public RetrofitRequestBuilderPaginated getLastBuilder()
public BaseId getNextCursor()
Copyright © 2018 The Apache Software Foundation. All rights reserved.