Class Pagination


  • public class Pagination
    extends Object
    • Method Detail

      • of

        public static Pagination of​(Integer pageNumber,
                                    Integer numberOfItemsPerPage)
        Parameters:
        pageNumber - null to retrieve all items
        numberOfItemsPerPage - null to retrieve all items
        Returns:
        never null
      • getNumberOfItemsPerPage

        public Integer getNumberOfItemsPerPage()
      • getFirstResultIndex

        public Integer getFirstResultIndex()
      • getPageNumber

        public Integer getPageNumber()
      • withNumberOfItemsPerPage

        public Pagination withNumberOfItemsPerPage​(Integer numberOfItemsPerPage)
      • isOnFirstPage

        public boolean isOnFirstPage()