Interface Scrollable<E>


public interface Scrollable<E>
A simple interface for lists supporting scrollable behavior result sets.
Version:
$Id$
Author:
Danny Bernstein
  • Method Details

    • getResultCount

      long getResultCount()
      The total result count
      Returns:
    • getMaxResultsPerPage

      int getMaxResultsPerPage()
      The max number of results per page; ie the page size.
      Returns:
    • setMaxResultsPerPage

      void setMaxResultsPerPage(int maxResults)
    • setFirstResultIndex

      void setFirstResultIndex(long index) throws IndexOutOfBoundsException
      Sets the starting index for the page.
      Parameters:
      index - The absolute item index.
      Throws:
      IndexOutOfBoundsException
    • getFirstResultIndex

      long getFirstResultIndex()
    • getResultList

      List<E> getResultList()
      Returns the results for the current "page"
      Returns: