Class GraphQLPageResponse<T>
java.lang.Object
com.atlassian.confluence.rest.serialization.graphql.GraphQLPagination<T>
com.atlassian.confluence.rest.serialization.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:
- 6.12.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.graphql.GraphQLPagination
buildEdges, getCount, getEdges, getNodes, getPageInfo, load, setCount, setEdges, setNodes, setPageInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface com.atlassian.confluence.api.model.pagination.PageResponse
getNextCursor, getPrevCursor
-
Constructor Details
-
GraphQLPageResponse
public GraphQLPageResponse() -
GraphQLPageResponse
-
GraphQLPageResponse
-
-
Method Details
-
iterator
-
getResults
- Specified by:
getResultsin interfacePageResponse<T>- Returns:
- the results
-
size
public int size()- Specified by:
sizein interfacePageResponse<T>- Returns:
- the number of results in this page of results
-
hasMore
public boolean hasMore()Description copied from interface:PageResponseIndicates whether the source has more results after this page.- Specified by:
hasMorein interfacePageResponse<T>- Returns:
- true if there are more results
-
getPageRequest
- Specified by:
getPageRequestin interfacePageResponse<T>- Returns:
- the request used to produce this response
-