@PropertyOptions(propertyHandler: RelaxedPropertyHandler) @MapConstructor(noArg: true) @CompileStatic class PageInfo extends Object
Info about paged response.
Intended to be used as a part of response containing paged data.Type | Name and description |
---|---|
Boolean |
first Whether this is the first page. |
Boolean |
last Whether this is the last page. |
Integer |
pageElementsCount The number of contained page elements. |
Integer |
pageOrdinal The ordinal number of the page. |
PageRequirement |
requestedPageRequirement The page requirement sent when this page was requested. |
List<SortRequirement> |
requestedSortRequirementList The list of sort requirements sent when this page was requested. |
Long |
totalElementsCount The total number of all data elements available for paging. |
Integer |
totalPagesCount The total number of all available pages. |
Constructor and description |
---|
PageInfo() |
Whether this is the first page.
Whether this is the last page.
The number of contained page elements.
The ordinal number of the page.
The page requirement sent when this page was requested.
The list of sort requirements sent when this page was requested.
The total number of all data elements available for paging.
If data source does not support paging (or the paging was not requested), it is -1. Default is -1.The total number of all available pages.
If data source does not support paging (or the paging was not requested), it is -1. Default is -1.Groovy Documentation