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 boolean
equals(java.lang.Object o)
ConnectionCursor
getEndCursor()
ConnectionCursor
getStartCursor()
int
hashCode()
boolean
isHasNextPage()
boolean
isHasPreviousPage()
java.lang.String
toString()
-
-
-
Constructor Detail
-
DefaultPageInfo
public DefaultPageInfo(ConnectionCursor startCursor, ConnectionCursor endCursor, boolean hasPreviousPage, boolean hasNextPage)
-
-
Method Detail
-
getStartCursor
public ConnectionCursor getStartCursor()
- Specified by:
getStartCursor
in interfacePageInfo
- Returns:
- cursor to the first edge, or null if this page is empty.
-
getEndCursor
public ConnectionCursor 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
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-