Package org.nuxeo.ecm.core.api
Class ScrollResultImpl<T>
- java.lang.Object
-
- org.nuxeo.ecm.core.api.ScrollResultImpl<T>
-
- All Implemented Interfaces:
ScrollResult<T>
public class ScrollResultImpl<T> extends Object implements ScrollResult<T>
- Since:
- 8.4
-
-
Field Summary
Fields Modifier and Type Field Description protected static ScrollResult<?>
EMPTY_RESULT
protected List<T>
results
protected String
scrollId
-
Constructor Summary
Constructors Constructor Description ScrollResultImpl(String scrollId, List<T> results)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <O> ScrollResult<O>
emptyResult()
List<T>
getResults()
Returns the list of resultsString
getScrollId()
Returns the scroll identifier, which can be passed to CoreSession.scroll(String scrollId) to get more results.boolean
hasResults()
Returnstrue
when thisScrollResult
contains results.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.core.api.ScrollResult
getResultIds
-
-
-
-
Field Detail
-
EMPTY_RESULT
protected static final ScrollResult<?> EMPTY_RESULT
-
scrollId
protected final String scrollId
-
-
Method Detail
-
emptyResult
public static <O> ScrollResult<O> emptyResult()
-
getScrollId
public String getScrollId()
Description copied from interface:ScrollResult
Returns the scroll identifier, which can be passed to CoreSession.scroll(String scrollId) to get more results.- Specified by:
getScrollId
in interfaceScrollResult<T>
-
hasResults
public boolean hasResults()
Description copied from interface:ScrollResult
Returnstrue
when thisScrollResult
contains results.- Specified by:
hasResults
in interfaceScrollResult<T>
-
getResults
public List<T> getResults()
Description copied from interface:ScrollResult
Returns the list of results- Specified by:
getResults
in interfaceScrollResult<T>
-
-