Package ai.neuon.utility.paging
Class PagingData
-
- All Implemented Interfaces:
public final class PagingData<T extends Object>Represents a single page of results in a paginated query.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classPagingData.Companion
-
Method Summary
Modifier and Type Method Description final IntegergetI()final IntegergetPageSize()final LonggetTotalItemsCount()final List<T>getList()final <Error class: unknown class>buildPagingJsonObject()-
-
Constructor Detail
-
PagingData
PagingData(Integer i, Integer pageSize, Long totalItemsCount, List<T> list)
- Parameters:
i- The zero-based index of the current page.pageSize- Number of items in each page.totalItemsCount- Optional total number of items available across all pages.list- The list of items in the current page.
-
-
Method Detail
-
getPageSize
final Integer getPageSize()
-
getTotalItemsCount
final Long getTotalItemsCount()
-
buildPagingJsonObject
final <Error class: unknown class> buildPagingJsonObject()
-
-
-
-