Class PagingInfo
- java.lang.Object
-
- de.digitalcollections.model.list.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()
int
getNumber()
int
getSize()
long
getTotalItems()
int
getTotalPages()
String
getUrl()
boolean
hasNextPage()
boolean
hasPreviousPage()
boolean
isFirstPage()
boolean
isLastPage()
String
toString()
-
-
-
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()
-
-