Class PageInfo

  • All Implemented Interfaces:
    java.io.Serializable

    public class PageInfo
    extends java.lang.Object
    implements java.io.Serializable
    Information about pagination in a connection.
     type PageInfo
     
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      PageInfo()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getEndCursor()
      When paginating forwards, the cursor to continue.
      java.lang.String getStartCursor()
      When paginating backwards, the cursor to continue.
      int hashCode()  
      boolean isHasNextPage()
      When paginating forwards, are there more items?
      boolean isHasPreviousPage()
      When paginating backwards, are there more items?
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PageInfo

        public PageInfo()
    • Method Detail

      • isHasNextPage

        public boolean isHasNextPage()
        When paginating forwards, are there more items?
        Returns:
        true if more pages exist; otherwise false.
      • isHasPreviousPage

        public boolean isHasPreviousPage()
        When paginating backwards, are there more items?
        Returns:
        true if previous pages exist; otherwise false.
      • getEndCursor

        public java.lang.String getEndCursor()
        When paginating forwards, the cursor to continue.
        Returns:
        the cursor.
      • getStartCursor

        public java.lang.String getStartCursor()
        When paginating backwards, the cursor to continue.
        Returns:
        the cursor.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object