Package org.nuxeo.ecm.core.api.impl
Class DocumentModelChildrenIterator
java.lang.Object
org.nuxeo.ecm.core.api.impl.DocumentModelChildrenIterator
- All Implemented Interfaces:
Iterable<DocumentModel>,Iterator<DocumentModel>,DocumentModelIterator
Iterator over the children of a folder.
-
Field Summary
Fields inherited from interface org.nuxeo.ecm.core.api.DocumentModelIterator
UNKNOWN_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionDocumentModelChildrenIterator(CoreSession session, DocumentRef parentRef, String type, Filter filter) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
DocumentModelChildrenIterator
public DocumentModelChildrenIterator(CoreSession session, DocumentRef parentRef, String type, Filter filter)
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<DocumentModel>
-
next
- Specified by:
nextin interfaceIterator<DocumentModel>
-
remove
public void remove()- Specified by:
removein interfaceIterator<DocumentModel>
-
iterator
- Specified by:
iteratorin interfaceIterable<DocumentModel>
-
size
public long size()Description copied from interface:DocumentModelIteratorThis might return a real elements count if the implementation allow this.- Specified by:
sizein interfaceDocumentModelIterator- Returns:
- the number of elements or -1 (by convention) if it is unknown
-