org.infinitenature.commons.pagination.PageRequest Maven / Gradle / Ivy
package org.infinitenature.commons.pagination;
public interface PageRequest extends OffsetRequest
{
/**
* Returns the one based index of the requested PageImpl
*/
int getPage();
int getPageSize();
/**
* Return the {@link PageRequest} for the page which is the predcessor of the
* page returend with this request.
*
* @return the request for the predcessor page, this if this request is for
* the first page
*/
PageRequest previous();
PageRequest next();
}