page.getContent() |
items |
The actual list of elements/items on the current page. |
page.getTotalElements() |
count |
The total number of records across all pages. |
page.getTotalPages() |
totalPages |
The total number of pages based on pageSize . |
Math.max(page.getNumber() + 1, 1) |
currentPage |
The current page number (Spring uses 0-based indexing, but frontend needs 1-based). |
page.getSize() |
pageSize |
The number of items per page. |
page.isFirst() |
isFirst |
true if this is the first page. |
page.isLast() |
isLast |
true if this is the last page. |
page.hasNext() |
hasNext |
true if there is another page after this one. |
page.hasPrevious() |
hasPrevious |
true if there is a previous page before this one. |
page.getNumber() + 2 (if not last) |
nextPage |
The next page number (null if last page). |
page.getNumber() (if not first) |
previousPage |
The previous page number (null if first page). |