Package org.duracloud.common.util
Interface Scrollable<E>
public interface Scrollable<E>
A simple interface for lists supporting scrollable behavior
result sets.
- Version:
- $Id$
- Author:
- Danny Bernstein
-
Method Summary
Modifier and TypeMethodDescriptionlongintThe max number of results per page; ie the page size.longThe total result countReturns the results for the current "page"voidsetFirstResultIndex(long index) Sets the starting index for the page.voidsetMaxResultsPerPage(int maxResults)
-
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
Sets the starting index for the page.- Parameters:
index- The absolute item index.- Throws:
IndexOutOfBoundsException
-
getFirstResultIndex
long getFirstResultIndex() -
getResultList
Returns the results for the current "page"- Returns:
-