Class GraphQLPagination<T>
- java.lang.Object
- 
- com.atlassian.confluence.rest.serialization.graphql.GraphQLPagination<T>
 
- 
- Direct Known Subclasses:
- GraphQLPageResponse,- LikesProvider.LikesResponse
 
 public class GraphQLPagination<T> extends Object 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 SummaryConstructors Constructor Description GraphQLPagination()GraphQLPagination(List<T> nodes, BiFunction<T,Integer,String> cursorMapper, boolean hasNextPage)GraphQLPagination(List<T> nodes, List<GraphQLPaginationEdge<T>> edges, boolean hasNextPage)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static <T> List<GraphQLPaginationEdge<T>>buildEdges(List<T> nodes, BiFunction<T,Integer,String> cursorMapper)IntegergetCount()List<GraphQLPaginationEdge<T>>getEdges()List<T>getNodes()GraphQLPaginationInfogetPageInfo()protected voidload()protected voidsetCount(Integer count)protected voidsetEdges(List<GraphQLPaginationEdge<T>> edges)protected voidsetNodes(List<T> nodes)protected voidsetPageInfo(GraphQLPaginationInfo pageInfo)
 
- 
- 
- 
Constructor Detail- 
GraphQLPaginationpublic GraphQLPagination() 
 - 
GraphQLPaginationpublic GraphQLPagination(List<T> nodes, BiFunction<T,Integer,String> cursorMapper, boolean hasNextPage) 
 - 
GraphQLPaginationpublic GraphQLPagination(List<T> nodes, List<GraphQLPaginationEdge<T>> edges, boolean hasNextPage) 
 
- 
 - 
Method Detail- 
getCountpublic Integer getCount() 
 - 
setCountprotected void setCount(Integer count) 
 - 
getEdgespublic List<GraphQLPaginationEdge<T>> getEdges() 
 - 
setEdgesprotected void setEdges(List<GraphQLPaginationEdge<T>> edges) 
 - 
getPageInfopublic GraphQLPaginationInfo getPageInfo() 
 - 
setPageInfoprotected void setPageInfo(GraphQLPaginationInfo pageInfo) 
 - 
loadprotected void load() 
 - 
buildEdgesprotected static <T> List<GraphQLPaginationEdge<T>> buildEdges(List<T> nodes, BiFunction<T,Integer,String> cursorMapper) 
 
- 
 
-