Package graphql.relay

Class DefaultPageInfo

java.lang.Object
graphql.relay.DefaultPageInfo
All Implemented Interfaces:
PageInfo

@PublicApi public class DefaultPageInfo extends Object implements PageInfo
  • Constructor Details

  • Method Details

    • getStartCursor

      public ConnectionCursor getStartCursor()
      Specified by:
      getStartCursor in interface PageInfo
      Returns:
      cursor to the first edge, or null if this page is empty.
    • getEndCursor

      public ConnectionCursor getEndCursor()
      Specified by:
      getEndCursor in interface PageInfo
      Returns:
      cursor to the last edge, or null if this page is empty.
    • isHasPreviousPage

      public boolean isHasPreviousPage()
      Specified by:
      isHasPreviousPage in interface PageInfo
      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 interface PageInfo
      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(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object