Class GraphQLPagination<T>
java.lang.Object
com.atlassian.confluence.rest.serialization.jackson2.graphql.GraphQLPagination<T>
- Direct Known Subclasses:
GraphQLPageResponse
,LikesProvider.LikesResponse
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
ConstructorsConstructorDescriptionGraphQLPagination
(List<T> nodes, BiFunction<T, Integer, String> cursorMapper, boolean hasNextPage) GraphQLPagination
(List<T> nodes, List<GraphQLPaginationEdge<T>> edges, boolean hasNextPage) -
Method Summary
Modifier and TypeMethodDescriptionprotected static <T> List<GraphQLPaginationEdge<T>>
buildEdges
(List<T> nodes, BiFunction<T, Integer, String> cursorMapper) getCount()
getEdges()
getNodes()
protected void
load()
protected void
protected void
setEdges
(List<GraphQLPaginationEdge<T>> edges) protected void
protected void
setPageInfo
(GraphQLPaginationInfo pageInfo)
-
Constructor Details
-
GraphQLPagination
public GraphQLPagination() -
GraphQLPagination
-
GraphQLPagination
-
-
Method Details
-
getCount
-
setCount
-
getNodes
-
setNodes
-
getEdges
-
setEdges
-
getPageInfo
-
setPageInfo
-
load
protected void load() -
buildEdges
protected static <T> List<GraphQLPaginationEdge<T>> buildEdges(List<T> nodes, BiFunction<T, Integer, String> cursorMapper)
-