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, setPageInfo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public 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()
PageResponse
hasMore
in interface PageResponse<T>
public PageRequest getPageRequest()
getPageRequest
in interface PageResponse<T>
Copyright © 2003–2018 Atlassian. All rights reserved.