public interface

PageRequest

com.atlassian.bitbucket.util.PageRequest
Known Indirect Subclasses

Class Overview

Pagination for a request.

Summary

Constants
int MAX_PAGE_LIMIT The maximum size of any page limit.
Public Methods
@Nonnull PageRequest buildRestrictedPageRequest(int maxLimit)
int getLimit()
int getStart()

Constants

public static final int MAX_PAGE_LIMIT

The maximum size of any page limit.

Constant Value: 1048576 (0x00100000)

Public Methods

@Nonnull public 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

public int getLimit ()

Returns
  • the maximum allowed size of the page

public int getStart ()

Returns
  • the index of the element in the result set that this page will start at