Class PagingInfo
- java.lang.Object
-
- de.digitalcollections.model.paging.PagingInfo
-
public class PagingInfo extends Object
-
-
Constructor Summary
Constructors Constructor Description PagingInfo(long totalItems, int currentPage, int totalPages, int maxPageItemsToDisplay, int pageSize, String url)PagingInfo
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<PageItem>getItems()intgetNumber()intgetSize()longgetTotalItems()intgetTotalPages()StringgetUrl()booleanhasNextPage()booleanhasPreviousPage()booleanisFirstPage()booleanisLastPage()StringtoString()
-
-
-
Constructor Detail
-
PagingInfo
public PagingInfo(long totalItems, int currentPage, int totalPages, int maxPageItemsToDisplay, int pageSize, String url)PagingInfo- Parameters:
totalItems- total number of items to be pagedcurrentPage- number of the current page, starting with 0totalPages- maximum page numbermaxPageItemsToDisplay- maximum number of page navigation items to be displayedpageSize- page sizeurl- base url
-
-
Method Detail
-
getNumber
public int getNumber()
-
getSize
public int getSize()
-
getTotalItems
public long getTotalItems()
-
getTotalPages
public int getTotalPages()
-
getUrl
public String getUrl()
-
hasNextPage
public boolean hasNextPage()
-
hasPreviousPage
public boolean hasPreviousPage()
-
isFirstPage
public boolean isFirstPage()
-
isLastPage
public boolean isLastPage()
-
-