Class PaginatedResponseBase.Pagination

java.lang.Object
com.amilesend.discogs.model.PaginatedResponseBase.Pagination
Enclosing class:
PaginatedResponseBase<T>

public static class PaginatedResponseBase.Pagination extends Object
Describes the pagination information for a response.
  • Method Details

    • getFirstUrl

      public String getFirstUrl()
      Gets the URL to navigate to the first page.
      Returns:
      the first page URL, or null if no pages exist
    • getPreviousUrl

      public String getPreviousUrl()
      Gets the URL for the previous page.
      Returns:
      the previous page URL, or null if no pages exist
    • getNextUrl

      public String getNextUrl()
      Gets the URL for the next page.
      Returns:
      the next page URL, or null if no pages exist
    • getLastUrl

      public String getLastUrl()
      Gets the URL for the last page.
      Returns:
      the last page URL, or null if no pages exist
    • builder

    • getPage

      public Integer getPage()
      The page number associated with the results.
    • getPages

      public Integer getPages()
      The total number of pages available.
    • getItems

      public Integer getItems()
      The total number of items available.
    • getPerPage

      public Integer getPerPage()
      The number of items per page.
    • getUrls

      public Map<String,String> getUrls()
      The map of URLs used to navigate pages.
    • 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