public class ScrollResultImpl<T> extends Object implements ScrollResult<T>
| Modifier and Type | Field and Description |
|---|---|
protected static ScrollResult<?> |
EMPTY_RESULT |
protected List<T> |
results |
protected String |
scrollId |
| Constructor and Description |
|---|
ScrollResultImpl(String scrollId,
List<T> results) |
| Modifier and Type | Method and Description |
|---|---|
static <O> ScrollResult<O> |
emptyResult() |
List<T> |
getResults()
Returns the list of results
|
String |
getScrollId()
Returns the scroll identifier, which can be passed to CoreSession.scroll(String scrollId) to get more results.
|
boolean |
hasResults()
Returns
true when this ScrollResult contains results. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetResultIdsprotected static final ScrollResult<?> EMPTY_RESULT
public ScrollResultImpl(String scrollId, List<T> results)
public static <O> ScrollResult<O> emptyResult()
public String getScrollId()
ScrollResultgetScrollId in interface ScrollResult<T>public boolean hasResults()
ScrollResulttrue when this ScrollResult contains results.hasResults in interface ScrollResult<T>public List<T> getResults()
ScrollResultgetResults in interface ScrollResult<T>Copyright © 2019 Nuxeo. All rights reserved.