@PublicApi public interface PagedResponse<T> extends Iterable<T>
Modifier and Type | Method and Description |
---|---|
Optional<T> |
findFirst() |
PagedRequest |
getPagedRequest() |
List<T> |
getResults() |
boolean |
hasNextPage()
Indicates whether the source has more results after this page.
|
<M> PagedResponse<M> |
map(com.google.common.base.Function<T,M> mapper)
Allows you to map a paged response of T into M
|
int |
size() |
forEach, iterator, spliterator
int size()
boolean hasNextPage()
PagedRequest getPagedRequest()
<M> PagedResponse<M> map(com.google.common.base.Function<T,M> mapper)
M
- the output typemapper
- the mapping functionCopyright © 2024 Atlassian. All rights reserved.