Package org.jobrunr.storage
Class Page<T>
java.lang.Object
org.jobrunr.storage.Page<T>
-
Constructor Summary
ConstructorsConstructorDescriptionPage
(long total, List<T> items, long offset, int currentPageNo, PageRequest currentPage, PageRequest previousPage, PageRequest nextPage) Page
(long total, List<T> items, PageRequest currentPage, PageRequest previousPage, PageRequest nextPage) -
Method Summary
-
Constructor Details
-
Method Details
-
emptyPage
-
getTotal
-
getCurrentPage
public int getCurrentPage() -
getTotalPages
public int getTotalPages() -
getLimit
public int getLimit() -
getOffset
public long getOffset() -
getPreviousPage
-
getNextPage
-
getItems
-
hasItems
public boolean hasItems() -
hasPreviousPage
public boolean hasPreviousPage() -
hasNextPage
public boolean hasNextPage()
-