public abstract class ScrollableList<E> extends Object implements Scrollable<E>
Constructor and Description |
---|
ScrollableList() |
Modifier and Type | Method and Description |
---|---|
void |
first() |
protected abstract List<E> |
getData(E currentMarker) |
long |
getMaxResultsPerPage()
The max number of results per page; ie the page size.
|
List<E> |
getResultList()
Returns the results for the current "page"
|
boolean |
isNextAvailable() |
boolean |
isPreviousAvailable() |
void |
markForUpdate() |
void |
next() |
void |
previous() |
void |
setMaxResultsPerPage(int maxResults) |
protected void |
update() |
public long getMaxResultsPerPage()
Scrollable
getMaxResultsPerPage
in interface Scrollable<E>
public void markForUpdate()
public void setMaxResultsPerPage(int maxResults)
setMaxResultsPerPage
in interface Scrollable<E>
public void next()
public void first()
first
in interface Scrollable<E>
public void previous()
previous
in interface Scrollable<E>
public boolean isPreviousAvailable()
isPreviousAvailable
in interface Scrollable<E>
public boolean isNextAvailable()
public List<E> getResultList()
Scrollable
getResultList
in interface Scrollable<E>
protected final void update() throws DataRetrievalException
DataRetrievalException
protected abstract List<E> getData(E currentMarker) throws DataRetrievalException
DataRetrievalException
Copyright © 2009–2014 DuraSpace. All rights reserved.