public class DocumentModelListCollector extends ArrayList<DocumentModel> implements DocumentModelList, OutputCollector<DocumentModelList,DocumentModelList>
DocumentModel
objects and return them as a DocumentModelList
object.
You may use this to automatically iterate over iterable inputs in operation methods that return a
DocumentModel
object
modCount
Constructor and Description |
---|
DocumentModelListCollector() |
Modifier and Type | Method and Description |
---|---|
void |
collect(OperationContext ctx,
DocumentModelList obj)
Collects a new partial result (the result of the last iteration step).
|
DocumentModelList |
getOutput()
Gets the final output.
|
long |
totalSize()
Returns the total size of the bigger list this is a part of.
|
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
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray
parallelStream, removeIf, stream
public DocumentModelListCollector()
public long totalSize()
DocumentModelList
totalSize
in interface DocumentModelList
public void collect(OperationContext ctx, DocumentModelList obj) throws OperationException
OutputCollector
collect
in interface OutputCollector<DocumentModelList,DocumentModelList>
OperationException
public DocumentModelList getOutput()
OutputCollector
getOutput
in interface OutputCollector<DocumentModelList,DocumentModelList>
Copyright © 2018 Nuxeo. All rights reserved.