org.nuxeo.ecm.core.api.repository.cache
Class SimpleDocumentModelIterator
java.lang.Object
org.nuxeo.ecm.core.api.repository.cache.SimpleDocumentModelIterator
- All Implemented Interfaces:
- Serializable, Iterable<DocumentModel>, Iterator<DocumentModel>, DocumentModelIterator
public class SimpleDocumentModelIterator
- extends Object
- implements DocumentModelIterator
- Author:
- Bogdan Stefanescu
- See Also:
- Serialized Form
SimpleDocumentModelIterator
public SimpleDocumentModelIterator(List<DocumentModel> list)
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 interface DocumentModelIterator
- Returns:
- the number of elements or -1 (by convention) if it is unknown
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<DocumentModel>
next
public DocumentModel next()
- Specified by:
next
in interface Iterator<DocumentModel>
remove
public void remove()
- Specified by:
remove
in interface Iterator<DocumentModel>
iterator
public Iterator<DocumentModel> iterator()
- Specified by:
iterator
in interface Iterable<DocumentModel>
Copyright © 2011 Nuxeo SAS. All Rights Reserved.