withPage abstract method

Pageable withPage(
  1. int pageNumber
)

Returns a new Pageable with the given pageNumber.

Use this to jump to an arbitrary page in the sequence.

Example:

final page5 = currentPage.withPage(5);

Implementation

Pageable withPage(int pageNumber);