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 Details

    • EMPTY_RESULT

      protected static final ScrollResult<?> EMPTY_RESULT
    • scrollId

      protected final String scrollId
    • results

      protected final List<T> results
  • Constructor Details

    • ScrollResultImpl

      public ScrollResultImpl(String scrollId, List<T> results)
  • Method Details

    • 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 interface ScrollResult<T>
    • hasResults

      public boolean hasResults()
      Description copied from interface: ScrollResult
      Returns true when this ScrollResult contains results.
      Specified by:
      hasResults in interface ScrollResult<T>
    • getResults

      public List<T> getResults()
      Description copied from interface: ScrollResult
      Returns the list of results
      Specified by:
      getResults in interface ScrollResult<T>