Class DefaultPageInfo
java.lang.Object
graphql.relay.DefaultPageInfo
- All Implemented Interfaces:
PageInfo
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConnectionCursorprivate final booleanprivate final booleanprivate final ConnectionCursor -
Constructor Summary
ConstructorsConstructorDescriptionDefaultPageInfo(ConnectionCursor startCursor, ConnectionCursor endCursor, boolean hasPreviousPage, boolean hasNextPage) -
Method Summary
-
Field Details
-
startCursor
-
endCursor
-
hasPreviousPage
private final boolean hasPreviousPage -
hasNextPage
private final boolean hasNextPage
-
-
Constructor Details
-
DefaultPageInfo
public DefaultPageInfo(ConnectionCursor startCursor, ConnectionCursor endCursor, boolean hasPreviousPage, boolean hasNextPage)
-
-
Method Details
-
getStartCursor
- Specified by:
getStartCursorin interfacePageInfo- Returns:
- cursor to the first edge, or null if this page is empty.
-
getEndCursor
- Specified by:
getEndCursorin interfacePageInfo- Returns:
- cursor to the last edge, or null if this page is empty.
-
isHasPreviousPage
public boolean isHasPreviousPage()- Specified by:
isHasPreviousPagein interfacePageInfo- Returns:
- true if and only if this page is not the first page. only meaningful when you gave the
lastargument.
-
isHasNextPage
public boolean isHasNextPage()- Specified by:
isHasNextPagein interfacePageInfo- Returns:
- true if and only if this page is not the last page. only meaningful when you gave the
firstargument.
-
equals
-
hashCode
-
toString
-