@PublicApi public class DefaultPageInfo extends java.lang.Object implements PageInfo
Constructor and Description |
---|
DefaultPageInfo(ConnectionCursor startCursor,
ConnectionCursor endCursor,
boolean hasPreviousPage,
boolean hasNextPage) |
Modifier and Type | Method and Description |
---|---|
ConnectionCursor |
getEndCursor() |
ConnectionCursor |
getStartCursor() |
boolean |
isHasNextPage() |
boolean |
isHasPreviousPage() |
java.lang.String |
toString() |
public DefaultPageInfo(ConnectionCursor startCursor, ConnectionCursor endCursor, boolean hasPreviousPage, boolean hasNextPage)
public ConnectionCursor getStartCursor()
getStartCursor
in interface PageInfo
public ConnectionCursor getEndCursor()
getEndCursor
in interface PageInfo
public boolean isHasPreviousPage()
isHasPreviousPage
in interface PageInfo
last
argument.public boolean isHasNextPage()
isHasNextPage
in interface PageInfo
first
argument.public java.lang.String toString()
toString
in class java.lang.Object