Interface IPage<T>

Type Parameters:
T - the type of elements that this page contains
All Superinterfaces:
Iterable<T>
All Known Implementing Classes:
Page

public interface IPage<T> extends Iterable<T>
A page is an iterable object that contains the slice of data in specified range.
  • Method Details

    • getSize

      int getSize()
      Returns the size of this page.
      Returns:
      the size of this page
    • getNumber

      int getNumber()
      Returns the number of current page.
      Returns:
      the number of current page
    • getContentSize

      int getContentSize()
      Returns the number of elements this page contains.
      Returns:
      he number of elements this page contains
    • getTotalSize

      long getTotalSize()
      Returns the total amount of elements.
      Returns:
      the total amount of elements
    • getContent

      List<T> getContent()
      Returns the page content.
      Returns:
      the page content
    • getPageable

      IPageable getPageable()
      Returns the pageable object are associated with this page.
      Returns:
      associated pageable object