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, wait
getResultIds
protected static final ScrollResult<?> EMPTY_RESULT
public ScrollResultImpl(String scrollId, List<T> results)
public static <O> ScrollResult<O> emptyResult()
public String getScrollId()
ScrollResult
getScrollId
in interface ScrollResult<T>
public boolean hasResults()
ScrollResult
true
when this ScrollResult
contains results.hasResults
in interface ScrollResult<T>
public List<T> getResults()
ScrollResult
getResults
in interface ScrollResult<T>
Copyright © 2018 Nuxeo. All rights reserved.