public class GraphQLPageResponse<T> extends GraphQLPagination<T> implements PageResponse<T>
| Constructor and Description |
|---|
GraphQLPageResponse() |
GraphQLPageResponse(PageResponse<T> pageResponse,
BiFunction<T,Integer,String> cursorMapper) |
GraphQLPageResponse(PageResponse<T> pageResponse,
List<GraphQLPaginationEdge<T>> edges) |
| Modifier and Type | Method and Description |
|---|---|
PageRequest |
getPageRequest() |
List<T> |
getResults() |
boolean |
hasMore()
Indicates whether the source has more results after this page.
|
Iterator<T> |
iterator() |
int |
size() |
buildEdges, getCount, getEdges, getNodes, getPageInfo, load, setCount, setEdges, setNodes, setPageInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic GraphQLPageResponse()
public GraphQLPageResponse(PageResponse<T> pageResponse, BiFunction<T,Integer,String> cursorMapper)
public GraphQLPageResponse(PageResponse<T> pageResponse, List<GraphQLPaginationEdge<T>> edges)
public List<T> getResults()
getResults in interface PageResponse<T>public int size()
size in interface PageResponse<T>public boolean hasMore()
PageResponsehasMore in interface PageResponse<T>public PageRequest getPageRequest()
getPageRequest in interface PageResponse<T>Copyright © 2003–2021 Atlassian. All rights reserved.