Package graphql.relay
Class DefaultPageInfo
java.lang.Object
graphql.relay.DefaultPageInfo
- All Implemented Interfaces:
PageInfo
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultPageInfo
(ConnectionCursor startCursor, ConnectionCursor endCursor, boolean hasPreviousPage, boolean hasNextPage) -
Method Summary
-
Constructor Details
-
DefaultPageInfo
public DefaultPageInfo(ConnectionCursor startCursor, ConnectionCursor endCursor, boolean hasPreviousPage, boolean hasNextPage)
-
-
Method Details
-
getStartCursor
- Specified by:
getStartCursor
in interfacePageInfo
- Returns:
- cursor to the first edge, or null if this page is empty.
-
getEndCursor
- Specified by:
getEndCursor
in interfacePageInfo
- Returns:
- cursor to the last edge, or null if this page is empty.
-
isHasPreviousPage
public boolean isHasPreviousPage()- Specified by:
isHasPreviousPage
in interfacePageInfo
- Returns:
- true if and only if this page is not the first page. only meaningful when you gave the
last
argument.
-
isHasNextPage
public boolean isHasNextPage()- Specified by:
isHasNextPage
in interfacePageInfo
- Returns:
- true if and only if this page is not the last page. only meaningful when you gave the
first
argument.
-
equals
-
hashCode
public int hashCode() -
toString
-