Module jakarta.data

Record Class PageRecord<T>

java.lang.Object
java.lang.Record
jakarta.data.page.impl.PageRecord<T>
Type Parameters:
T - The type of elements on the page
Record Components:
pageRequest - The page request for which this page was obtained
content - The page content
totalElements - The total number of elements across all pages that can be requested for the query. A negative value indicates that a total count of elements and pages is not available.
moreResults - whether there is a (nonempty) next page of results
All Implemented Interfaces:
Page<T>, Iterable<T>

public record PageRecord<T>(PageRequest<T> pageRequest, List<T> content, long totalElements, boolean moreResults) extends Record implements Page<T>
Record type implementing Page. This may be used to simplify implementation of a repository interface.