Class PagingInfo


  • public class PagingInfo
    extends Object
    • 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 paged
        currentPage - number of the current page, starting with 0
        totalPages - maximum page number
        maxPageItemsToDisplay - maximum number of page navigation items to be displayed
        pageSize - page size
        url - 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()