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
ConstructorDescriptionDocumentModelChildrenIterator
(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, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods 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:
hasNext
in interfaceIterator<DocumentModel>
-
next
- Specified by:
next
in interfaceIterator<DocumentModel>
-
remove
public void remove()- Specified by:
remove
in interfaceIterator<DocumentModel>
-
iterator
- Specified by:
iterator
in interfaceIterable<DocumentModel>
-
size
public long size()Description copied from interface:DocumentModelIterator
This might return a real elements count if the implementation allow this.- Specified by:
size
in interfaceDocumentModelIterator
- Returns:
- the number of elements or -1 (by convention) if it is unknown
-