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_RESULTprotected List<T>resultsprotected StringscrollId
-
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 resultsStringgetScrollId()Returns the scroll identifier, which can be passed to CoreSession.scroll(String scrollId) to get more results.booleanhasResults()Returnstruewhen thisScrollResultcontains 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:ScrollResultReturns the scroll identifier, which can be passed to CoreSession.scroll(String scrollId) to get more results.- Specified by:
getScrollIdin interfaceScrollResult<T>
-
hasResults
public boolean hasResults()
Description copied from interface:ScrollResultReturnstruewhen thisScrollResultcontains results.- Specified by:
hasResultsin interfaceScrollResult<T>
-
getResults
public List<T> getResults()
Description copied from interface:ScrollResultReturns the list of results- Specified by:
getResultsin interfaceScrollResult<T>
-
-