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 Summary
Constructors 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 Summary
All 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)
Integer
getCount()
List<GraphQLPaginationEdge<T>>
getEdges()
List<T>
getNodes()
GraphQLPaginationInfo
getPageInfo()
protected void
load()
protected void
setCount(Integer count)
protected void
setEdges(List<GraphQLPaginationEdge<T>> edges)
protected void
setNodes(List<T> nodes)
protected void
setPageInfo(GraphQLPaginationInfo pageInfo)
-
-
-
Constructor Detail
-
GraphQLPagination
public GraphQLPagination()
-
GraphQLPagination
public GraphQLPagination(List<T> nodes, BiFunction<T,Integer,String> cursorMapper, boolean hasNextPage)
-
GraphQLPagination
public GraphQLPagination(List<T> nodes, List<GraphQLPaginationEdge<T>> edges, boolean hasNextPage)
-
-
Method Detail
-
getCount
public Integer getCount()
-
setCount
protected void setCount(Integer count)
-
getEdges
public List<GraphQLPaginationEdge<T>> getEdges()
-
setEdges
protected void setEdges(List<GraphQLPaginationEdge<T>> edges)
-
getPageInfo
public GraphQLPaginationInfo getPageInfo()
-
setPageInfo
protected void setPageInfo(GraphQLPaginationInfo pageInfo)
-
load
protected void load()
-
buildEdges
protected static <T> List<GraphQLPaginationEdge<T>> buildEdges(List<T> nodes, BiFunction<T,Integer,String> cursorMapper)
-
-