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 PageRequest
nextPageRequest
record component.private final PageRequest
pageRequest
record component.private final PageRequest
previousPageRequest
record component.private final long
totalElements
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 boolean
boolean
Page
has content at all.final int
hashCode()
boolean
hasNext()
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
.boolean
true
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.boolean
true
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.int
Page
, which must be no larger
than the maximum size
of the page request.pageRequest
record component.previousPageRequest
record component.final String
toString()
long
totalElements
record component.long
Page.pageRequest()
specified that the total should be retrieved
from the database.clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
content
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 componentPage
Page
has content at all.hasContent
in interface Page<T>
Page
has content at all.Page
Page
, 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
.Page
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
.CursoredPage
true
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 componentCursoredPage
Cursor
for key values at the
specified position.cursor
in interface CursoredPage<T>
index
- position (0 is first) of a result on the page.Page
true
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 componentPage
Page.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