Class PageRequest

java.lang.Object
org.springframework.data.domain.AbstractPageRequest
org.springframework.data.domain.PageRequest
All Implemented Interfaces:
Serializable, Pageable

public class PageRequest extends AbstractPageRequest
Basic Java Bean implementation of Pageable.
Author:
Oliver Gierke, Thomas Darimont, Anastasiia Smirnova, Mark Paluch
See Also:
  • Constructor Details

    • PageRequest

      protected PageRequest(int page, int size, Sort sort)
      Creates a new PageRequest with sort parameters applied.
      Parameters:
      page - zero-based page index, must not be negative.
      size - the size of the page to be returned, must be greater than 0.
      sort - must not be null, use Sort.unsorted() instead.
  • Method Details