Class Pagination
- java.lang.Object
-
- org.optaweb.employeerostering.domain.roster.Pagination
-
public class Pagination extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetFirstResultIndex()IntegergetNumberOfItemsPerPage()IntegergetPageNumber()booleanisOnFirstPage()PaginationnextPage()static Paginationof(Integer pageNumber, Integer numberOfItemsPerPage)PaginationpreviousPage()PaginationwithNumberOfItemsPerPage(Integer numberOfItemsPerPage)
-
-
-
Method Detail
-
of
public static Pagination of(Integer pageNumber, Integer numberOfItemsPerPage)
- Parameters:
pageNumber- null to retrieve all itemsnumberOfItemsPerPage- null to retrieve all items- Returns:
- never null
-
getNumberOfItemsPerPage
public Integer getNumberOfItemsPerPage()
-
getFirstResultIndex
public Integer getFirstResultIndex()
-
getPageNumber
public Integer getPageNumber()
-
nextPage
public Pagination nextPage()
-
previousPage
public Pagination previousPage()
-
withNumberOfItemsPerPage
public Pagination withNumberOfItemsPerPage(Integer numberOfItemsPerPage)
-
isOnFirstPage
public boolean isOnFirstPage()
-
-