Package org.nuxeo.drive.adapter.impl
Class ScrollDocumentModelList
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<E>
-
- java.util.ArrayList<DocumentModel>
-
- org.nuxeo.ecm.core.api.impl.DocumentModelListImpl
-
- org.nuxeo.drive.adapter.impl.ScrollDocumentModelList
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<DocumentModel>
,Collection<DocumentModel>
,List<DocumentModel>
,RandomAccess
,DocumentModelList
public class ScrollDocumentModelList extends DocumentModelListImpl
Wrapper for the intermediate results ofFolderItem.scrollDescendants(String, int, long)
including a list of documents and a scroll id.- Since:
- 8.3
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected String
scrollId
-
Fields inherited from class org.nuxeo.ecm.core.api.impl.DocumentModelListImpl
totalSize
-
Fields inherited from class java.util.AbstractList
modCount
-
-
Constructor Summary
Constructors Constructor Description ScrollDocumentModelList(String scrollId, int size)
ScrollDocumentModelList(String scrollId, DocumentModelList docs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getScrollId()
int
hashCode()
void
setScrollId(String scrollId)
String
toString()
-
Methods inherited from class org.nuxeo.ecm.core.api.impl.DocumentModelListImpl
setTotalSize, totalSize
-
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
-
Methods inherited from class java.util.AbstractCollection
containsAll
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
-
-
-
-
Field Detail
-
scrollId
protected String scrollId
-
-
Constructor Detail
-
ScrollDocumentModelList
public ScrollDocumentModelList(String scrollId, int size)
-
ScrollDocumentModelList
public ScrollDocumentModelList(String scrollId, DocumentModelList docs)
-
-
Method Detail
-
getScrollId
public String getScrollId()
-
setScrollId
public void setScrollId(String scrollId)
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceCollection<DocumentModel>
- Specified by:
equals
in interfaceList<DocumentModel>
- Overrides:
equals
in classArrayList<DocumentModel>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceCollection<DocumentModel>
- Specified by:
hashCode
in interfaceList<DocumentModel>
- Overrides:
hashCode
in classArrayList<DocumentModel>
-
toString
public String toString()
- Overrides:
toString
in classAbstractCollection<DocumentModel>
-
-