Module jakarta.data

Record Class CursoredPageRecord<T>

java.lang.Object
java.lang.Record
jakarta.data.page.impl.CursoredPageRecord<T>
Type Parameters:
T - The type of elements on the page
Record Components:
content - The page content, that is, the query results, in order
cursors - A list of PageRequest.Cursor instances for result, in order
totalElements - The total number of elements across all pages that can be requested for the query
pageRequest - The page request for which this page was obtained
nextPageRequest - A page request for the next page of results
previousPageRequest - A page request for the previous page of results
All Implemented Interfaces:
CursoredPage<T>, Page<T>, Iterable<T>

public record CursoredPageRecord<T>(List<T> content, List<PageRequest.Cursor> cursors, long totalElements, PageRequest<T> pageRequest, PageRequest<T> nextPageRequest, PageRequest<T> previousPageRequest) extends Record implements CursoredPage<T>
Record type implementing CursoredPage. This may be used to simplify implementation of a repository interface.