Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.api
Interface DocumentModelIterator

All Superinterfaces:
java.lang.Iterable<DocumentModel>, java.util.Iterator<DocumentModel>, java.io.Serializable
All Known Implementing Classes:
CachingDocumentIterator, DocumentModelIteratorImpl, SimpleDocumentModelIterator

public interface DocumentModelIterator
extends java.util.Iterator<DocumentModel>, java.io.Serializable, java.lang.Iterable<DocumentModel>

A serializable iterator of document models. Long result sets are loaded frame by frame transparently by the DocumentModelIterator.

Author:
Bogdan Stefanescu, Dragos Mihalache

Field Summary
static int UNKNOWN_SIZE
           
 
Method Summary
 long size()
          This might return a real elements count if the implementation allow this.
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 
Methods inherited from interface java.lang.Iterable
iterator
 

Field Detail

UNKNOWN_SIZE

static final int UNKNOWN_SIZE
See Also:
Constant Field Values
Method Detail

size

long size()
This might return a real elements count if the implementation allow this.

Returns:
the number of elements or -1 (by convention) if it is unknown

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.