@PublicApi public class DefaultConnection<T> extends Object implements Connection<T>
Connection
Constructor and Description |
---|
DefaultConnection(List<Edge<T>> edges,
PageInfo pageInfo)
A connection consists of a list of edges and page info
|
public DefaultConnection(List<Edge<T>> edges, PageInfo pageInfo)
edges
- a non null list of edgespageInfo
- a non null page infoIllegalArgumentException
- if edges or page info is null. use Collections.emptyList()
for empty edges.public List<Edge<T>> getEdges()
getEdges
in interface Connection<T>
Edge
s that are really a node of data and its cursorpublic PageInfo getPageInfo()
getPageInfo
in interface Connection<T>
PageInfo
pagination data about about that list of edgesCopyright © 2019. All rights reserved.