-
public final class PaginationListOfCollectionModelA paginated list of collections.
-
-
Field Summary
Fields Modifier and Type Field Description private final LongtotalItemsprivate final LongcurrentPageprivate final IntegeritemsPerPageprivate final List<CollectionModel>items
-
Constructor Summary
Constructors Constructor Description PaginationListOfCollectionModel(Long totalItems, Long currentPage, Integer itemsPerPage, List<CollectionModel> items)
-
Method Summary
Modifier and Type Method Description final LonggetTotalItems()final LonggetCurrentPage()final IntegergetItemsPerPage()final List<CollectionModel>getItems()-
-
Constructor Detail
-
PaginationListOfCollectionModel
PaginationListOfCollectionModel(Long totalItems, Long currentPage, Integer itemsPerPage, List<CollectionModel> items)
- Parameters:
totalItems- The total number of collections available.currentPage- The current page number.itemsPerPage- The number of collections per page.items- The collections returned on the current page.
-
-
Method Detail
-
getTotalItems
final Long getTotalItems()
-
getCurrentPage
final Long getCurrentPage()
-
getItemsPerPage
final Integer getItemsPerPage()
-
getItems
final List<CollectionModel> getItems()
-
-
-
-