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
public class DocumentModelChildrenIterator extends Object implements DocumentModelIterator
Iterator over the children of a folder.
-
-
Field Summary
-
Fields inherited from interface org.nuxeo.ecm.core.api.DocumentModelIterator
UNKNOWN_SIZE
-
-
Constructor Summary
Constructors Constructor Description DocumentModelChildrenIterator(CoreSession session, DocumentRef parentRef, String type, Filter filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Iterator<DocumentModel>
iterator()
DocumentModel
next()
void
remove()
long
size()
This might return a real elements count if the implementation allow this.-
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 Detail
-
DocumentModelChildrenIterator
public DocumentModelChildrenIterator(CoreSession session, DocumentRef parentRef, String type, Filter filter)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator<DocumentModel>
-
next
public DocumentModel next()
- Specified by:
next
in interfaceIterator<DocumentModel>
-
remove
public void remove()
- Specified by:
remove
in interfaceIterator<DocumentModel>
-
iterator
public Iterator<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
-
-