Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.core.model
Class EmptyDocumentIterator

java.lang.Object
  extended by org.nuxeo.ecm.core.model.EmptyDocumentIterator
All Implemented Interfaces:
java.util.Iterator<Document>, DocumentIterator

public class EmptyDocumentIterator
extends java.lang.Object
implements DocumentIterator

Author:
Bogdan Stefanescu

Field Summary
static EmptyDocumentIterator INSTANCE
           
 
Fields inherited from interface org.nuxeo.ecm.core.model.DocumentIterator
UNKNOWN_SIZE
 
Constructor Summary
EmptyDocumentIterator()
           
 
Method Summary
 long getSize()
           
 boolean hasNext()
           
 Document next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final EmptyDocumentIterator INSTANCE
Constructor Detail

EmptyDocumentIterator

public EmptyDocumentIterator()
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<Document>

next

public Document next()
Specified by:
next in interface java.util.Iterator<Document>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<Document>

getSize

public long getSize()
Specified by:
getSize in interface DocumentIterator
Returns:
size of the iterator. (i.e. total number of items in the iterator). If the size cannot be provided this will return UNKNOWN_SIZE

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.