java.lang.Object
io.github.jeremylong.openvulnerability.client.ghsa.PageInfo
All Implemented Interfaces:
Serializable

public class PageInfo extends Object implements Serializable
Information about pagination in a connection.
 type PageInfo
 
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serialization version UID.
      See Also:
    • hasNextPage

      private boolean hasNextPage
      Whether there are more pages when paginating forwards.
    • hasPreviousPage

      private boolean hasPreviousPage
      Whether there are previous pages when paginating backwards.
    • endCursor

      private String endCursor
      The cursor to continue when paginating forwards.
    • startCursor

      private String startCursor
      The cursor to continue when paginating backwards.
  • Constructor Details

    • PageInfo

      public PageInfo()
  • Method Details

    • 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 String getEndCursor()
      When paginating forwards, the cursor to continue.
      Returns:
      the cursor.
    • getStartCursor

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

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object