content
The field for the
content record component.T - The type of elements on the pagecontent - The page content, that is, the query results, in ordercursors - A list of PageRequest.Cursor instances for result,
in ordertotalElements - The total number of elements across all pages that
can be requested for the querypageRequest - The page request for which this
page was obtainednextPageRequest - A page request for the next
page of resultspreviousPageRequest - A page request for the
previous page of resultsCursoredPage<T>, Page<T>, Iterable<T>CursoredPage.
This may be used to simplify implementation of a repository interface.content record component.private final List<PageRequest.Cursor>cursors record component.private final PageRequestnextPageRequest record component.private final PageRequestpageRequest record component.private final PageRequestpreviousPageRequest record component.private final longtotalElements record component.CursoredPageRecord(List<T> content,
List<PageRequest.Cursor> cursors,
long totalElements,
PageRequest pageRequest,
boolean firstPage,
boolean lastPage) CursoredPageRecord(List<T> content,
List<PageRequest.Cursor> cursors,
long totalElements,
PageRequest pageRequest,
PageRequest nextPageRequest,
PageRequest previousPageRequest) CursoredPageRecord record class.content()content record component.cursor(int index) Cursor for key values at the
specified position.cursors()cursors record component.final booleanbooleanPage has content at all.final inthashCode()booleanhasNext()true if it is known that there are more results or that it is
necessary to request a next page to determine whether there are more results,
so that Page.nextPageRequest() will definitely not return null.booleantrue when it is possible to navigate to a previous
page of results or if it is necessary to request a previous page in
order to determine whether there are more previous results.booleantrue if the Page.pageRequest() specified that the
total number of elements should
be retrieved from the database, and that it is therefore safe to call
Page.totalElements() or Page.totalPages().iterator()nextPageRequest record component.intPage, which must be no larger
than the maximum size of the page request.pageRequest record component.previousPageRequest record component.final StringtoString()longtotalElements record component.longPage.pageRequest()
specified that the total should be retrieved
from the database.clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorcontent record component.cursors record component.totalElements record component.pageRequest record component.nextPageRequest record component.previousPageRequest record component.content - The page content, that is, the query results, in ordercursors - A list of PageRequest.Cursor instances for result,
in ordertotalElements - The total number of elements across all pages that
can be requested for the querypageRequest - The page request for which this
page was obtainedfirstPage - True, if this is the first page of resultslastPage - True, if this is the last page of resultsCursoredPageRecord record class.content - the value for the content record componentcursors - the value for the cursors record componenttotalElements - the value for the totalElements record componentpageRequest - the value for the pageRequest record componentnextPageRequest - the value for the nextPageRequest record componentpreviousPageRequest - the value for the previousPageRequest record componentPagePage has content at all.hasContent in interface Page<T>Page has content at all.PagePage, which must be no larger
than the maximum size of the page request.
If the number of elements in the page is smaller than the maximum page size,
then there are no subsequent pages of data to read.numberOfElements in interface Page<T>Page.Pagetrue if it is known that there are more results or that it is
necessary to request a next page to determine whether there are more results,
so that Page.nextPageRequest() will definitely not return null.CursoredPagetrue when it is possible to navigate to a previous
page of results or if it is necessary to request a previous page in
order to determine whether there are more previous results.hasPrevious in interface CursoredPage<T>hasPrevious in interface Page<T>false if the current page is empty or if it is known
that there is not a previous page.nextPageRequest record component.nextPageRequest in interface CursoredPage<T>nextPageRequest in interface Page<T>nextPageRequest record componentpreviousPageRequest record component.previousPageRequest in interface CursoredPage<T>previousPageRequest in interface Page<T>previousPageRequest record componentCursoredPageCursor for key values at the
specified position.cursor in interface CursoredPage<T>index - position (0 is first) of a result on the page.Pagetrue if the Page.pageRequest() specified that the
total number of elements should
be retrieved from the database, and that it is therefore safe to call
Page.totalElements() or Page.totalPages().totalElements record component.totalElements in interface Page<T>totalElements record componentPagePage.pageRequest()
specified that the total should be retrieved
from the database.totalPages in interface Page<T>Objects::equals(Object,Object); primitive components are compared with '=='.content record component.cursors record component.cursors record componentpageRequest record component.pageRequest in interface Page<T>pageRequest record component