Package graphql.relay
Class DefaultPageInfo
- java.lang.Object
-
- graphql.relay.DefaultPageInfo
-
- All Implemented Interfaces:
PageInfo
@PublicApi public class DefaultPageInfo extends java.lang.Object implements PageInfo
-
-
Constructor Summary
Constructors Constructor Description DefaultPageInfo(ConnectionCursor startCursor, ConnectionCursor endCursor, boolean hasPreviousPage, boolean hasNextPage)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)ConnectionCursorgetEndCursor()ConnectionCursorgetStartCursor()inthashCode()booleanisHasNextPage()booleanisHasPreviousPage()java.lang.StringtoString()
-
-
-
Constructor Detail
-
DefaultPageInfo
public DefaultPageInfo(ConnectionCursor startCursor, ConnectionCursor endCursor, boolean hasPreviousPage, boolean hasNextPage)
-
-
Method Detail
-
getStartCursor
public ConnectionCursor getStartCursor()
- Specified by:
getStartCursorin interfacePageInfo- Returns:
- cursor to the first edge, or null if this page is empty.
-
getEndCursor
public ConnectionCursor 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
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-