public class DocumentModelCollector extends ArrayList<DocumentModel> implements DocumentModelList, OutputCollector<DocumentModel,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 |
|---|
DocumentModelCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
collect(OperationContext ctx,
DocumentModel 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, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitadd, 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, toArrayparallelStream, removeIf, streampublic DocumentModelCollector()
public long totalSize()
DocumentModelListtotalSize in interface DocumentModelListpublic void collect(OperationContext ctx, DocumentModel obj) throws OperationException
OutputCollectorcollect in interface OutputCollector<DocumentModel,DocumentModelList>OperationExceptionpublic DocumentModelList getOutput()
OutputCollectorgetOutput in interface OutputCollector<DocumentModel,DocumentModelList>Copyright © 2016 Nuxeo SA. All rights reserved.