Class GraphQLPageResponse<T>
java.lang.Object
com.atlassian.confluence.rest.serialization.jackson2.graphql.GraphQLPagination<T>
com.atlassian.confluence.rest.serialization.jackson2.graphql.GraphQLPageResponse<T>
- All Implemented Interfaces:
PageResponse<T>
,Iterable<T>
A graphql formatted pagination response.
See http://graphql.org/learn/pagination
for more information on the rationale for the structure of this data type.
- Since:
- 8.9.0
-
Constructor Summary
ConstructorsConstructorDescriptionGraphQLPageResponse
(PageResponse<T> pageResponse, BiFunction<T, Integer, String> cursorMapper) GraphQLPageResponse
(PageResponse<T> pageResponse, List<GraphQLPaginationEdge<T>> edges) -
Method Summary
Methods inherited from class com.atlassian.confluence.rest.serialization.jackson2.graphql.GraphQLPagination
buildEdges, getCount, getEdges, getNodes, getPageInfo, setCount, setEdges, setNodes, setPageInfo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface com.atlassian.confluence.api.model.pagination.PageResponse
getNextCursor, getPrevCursor, getTotalCount
-
Constructor Details
-
GraphQLPageResponse
public GraphQLPageResponse() -
GraphQLPageResponse
-
GraphQLPageResponse
-
-
Method Details
-
load
protected void load()- Overrides:
load
in classGraphQLPagination<T>
-
iterator
-
getResults
- Specified by:
getResults
in interfacePageResponse<T>
- Returns:
- the results
-
size
public int size()- Specified by:
size
in interfacePageResponse<T>
- Returns:
- the number of results in this page of results
-
hasMore
public boolean hasMore()Description copied from interface:PageResponse
Indicates whether the source has more results after this page.- Specified by:
hasMore
in interfacePageResponse<T>
- Returns:
- true if there are more results
-
getPageRequest
- Specified by:
getPageRequest
in interfacePageResponse<T>
- Returns:
- the request used to produce this response
-