Interface PageRequest

All Known Subinterfaces:
PagedResult, PageNavigator, Paginator<E>
All Known Implementing Classes:
PagedLiveData, PageRequestImpl

public interface PageRequest

The paged version of KriptonLiveData. A paged live data allows to move in the dataset with three parameters:

  • page: current page.
  • pageSize: is the number of elements retrieved from datasource. It is also used to define iteraction with
  • offset: it is an alternative to page as navigation system. It rapresents the distance from the first row. If you mix offset and nextPage, the behaviour will be strange (but not wrong). Just remember that nextPage and previousPage work with pages and not with offset.
Author:
xcesco
  • Method Summary

    Modifier and Type Method Description
    static PageRequest build​(int pageNumber, int pageSize)  
    int getOffset()
    Set the current offset from start of dataset.
    int getPageNumber()
    Current page
    int getPageSize()
    Page size used to navigate
  • Method Details

    • build

      static PageRequest build​(int pageNumber, int pageSize)
    • getOffset

      int getOffset()
      Set the current offset from start of dataset.
      Returns:
    • getPageNumber

      int getPageNumber()
      Current page
      Returns:
      Current page
    • getPageSize

      int getPageSize()
      Page size used to navigate
      Returns:
      Page size used to navigate