Class PageInfo

java.lang.Object
org.lockss.laaws.crawler.model.PageInfo

@Validated public class PageInfo extends Object
The information related to pagination of content
  • Constructor Details

    • PageInfo

      public PageInfo()
  • Method Details

    • totalCount

      public PageInfo totalCount(Integer totalCount)
    • getTotalCount

      @NotNull public @NotNull Integer getTotalCount()
      The total number of elements to be paginated
      Returns:
      totalCount
    • setTotalCount

      public void setTotalCount(Integer totalCount)
    • resultsPerPage

      public PageInfo resultsPerPage(Integer resultsPerPage)
    • getResultsPerPage

      @NotNull public @NotNull Integer getResultsPerPage()
      The number of results per page.
      Returns:
      resultsPerPage
    • setResultsPerPage

      public void setResultsPerPage(Integer resultsPerPage)
    • continuationToken

      public PageInfo continuationToken(String continuationToken)
    • getContinuationToken

      @NotNull public @NotNull String getContinuationToken()
      The continuation token.
      Returns:
      continuationToken
    • setContinuationToken

      public void setContinuationToken(String continuationToken)
    • curLink

      public PageInfo curLink(String curLink)
    • getCurLink

      @NotNull public @NotNull String getCurLink()
      The link to the current page.
      Returns:
      curLink
    • setCurLink

      public void setCurLink(String curLink)
    • nextLink

      public PageInfo nextLink(String nextLink)
    • getNextLink

      public String getNextLink()
      The link to the next page.
      Returns:
      nextLink
    • setNextLink

      public void setNextLink(String nextLink)
    • 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