Class PagingInfoImpl

java.lang.Object
de.digitalcollections.model.impl.paging.PagingInfoImpl
All Implemented Interfaces:
PagingInfo

public class PagingInfoImpl
extends java.lang.Object
implements PagingInfo
  • Constructor Summary

    Constructors
    Constructor Description
    PagingInfoImpl​(long totalItems, int currentPage, int totalPages, int maxPageItemsToDisplay, int pageSize, java.lang.String url)
    PagingInfo
  • Method Summary

    Modifier and Type Method Description
    java.util.List<PageItem> getItems()  
    int getNumber()  
    int getSize()  
    long getTotalItems()  
    int getTotalPages()  
    java.lang.String getUrl()  
    boolean hasNextPage()  
    boolean hasPreviousPage()  
    boolean isFirstPage()  
    boolean isLastPage()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PagingInfoImpl

      public PagingInfoImpl​(long totalItems, int currentPage, int totalPages, int maxPageItemsToDisplay, int pageSize, java.lang.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 Details