Class ResponsePage

  • All Implemented Interfaces:
    Serializable

    public class ResponsePage
    extends Page
    implements Serializable
    Represents the Page object withing a response. This contains totalPages and totalResults in addition to the Page object properties
    See Also:
    Serialized Form
    • Constructor Detail

      • ResponsePage

        public ResponsePage()
    • Method Detail

      • equals

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

        public int hashCode()
        Overrides:
        hashCode in class Page
      • getTotalPages

        public Integer getTotalPages()
        Response Value
        Number representing the total pages of results. Value is 0 when you paginate beyond 10,000 results.
        Returns:
        the total number of pages
      • getTotalResults

        public Integer getTotalResults()
        Response Value
        Number representing the total results across all pages.
        The values 0 through 9999 are exact counts.
        The value 10000 is a pseudo keyword representing greater than or equal to 10,000 results.
        Returns:
        the total number of results
      • setTotalPages

        public ResponsePage setTotalPages​(Integer totalPages)
        Response Value
        Number representing the total pages of results. Value is 0 when you paginate beyond 10,000 results.
        Parameters:
        totalPages - The total number of pages
        Returns:
        this.
      • setTotalResults

        public ResponsePage setTotalResults​(Integer totalResults)
        Response Value
        Number representing the total results across all pages.
        The values 0 through 9999 are exact counts.
        The value 10000 is a pseudo keyword representing greater than or equal to 10,000 results.
        Parameters:
        totalResults - The total number of results
        Returns:
        this.