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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetFirstResultIndex()intgetMaxResultsPerPage()The max number of results per page; ie the page size.longgetResultCount()The total result countList<E>getResultList()Returns the results for the current "page"voidsetFirstResultIndex(long index)Sets the starting index for the page.voidsetMaxResultsPerPage(int maxResults)
-
-
-
Method Detail
-
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 IndexOutOfBoundsExceptionSets the starting index for the page.- Parameters:
index- The absolute item index.- Throws:
IndexOutOfBoundsException
-
getFirstResultIndex
long getFirstResultIndex()
-
-