public class GraphQLPagination<T> extends Object
Constructor and Description |
---|
GraphQLPagination() |
GraphQLPagination(List<T> nodes,
BiFunction<T,Integer,String> cursorMapper,
boolean hasNextPage) |
GraphQLPagination(List<T> nodes,
List<GraphQLPaginationEdge<T>> edges,
boolean hasNextPage) |
Modifier and Type | Method and 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) |
public GraphQLPagination()
public GraphQLPagination(List<T> nodes, BiFunction<T,Integer,String> cursorMapper, boolean hasNextPage)
public GraphQLPagination(List<T> nodes, List<GraphQLPaginationEdge<T>> edges, boolean hasNextPage)
public Integer getCount()
protected void setCount(Integer count)
public List<GraphQLPaginationEdge<T>> getEdges()
protected void setEdges(List<GraphQLPaginationEdge<T>> edges)
public GraphQLPaginationInfo getPageInfo()
protected void setPageInfo(GraphQLPaginationInfo pageInfo)
protected void load()
protected static <T> List<GraphQLPaginationEdge<T>> buildEdges(List<T> nodes, BiFunction<T,Integer,String> cursorMapper)
Copyright © 2003–2019 Atlassian. All rights reserved.