Interface PageRequest

All Known Implementing Classes:
PageRequestImpl

public interface PageRequest
Pagination for a request.
  • Field Details

    • MAX_PAGE_LIMIT

      static final int MAX_PAGE_LIMIT
      The maximum size of any page limit.
      See Also:
  • Method Details

    • buildRestrictedPageRequest

      @Nonnull PageRequest buildRestrictedPageRequest(int maxLimit)
      Parameters:
      maxLimit - the maximum limit allowed in a page
      Returns:
      a copy of this pageRequest with the minimum of limit and maxLimit
    • getLimit

      int getLimit()
      Returns:
      the maximum allowed size of the page
    • getStart

      int getStart()
      Returns:
      the index of the element in the result set that this page will start at