Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.model
Class EmptyDocumentIterator

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

public class EmptyDocumentIterator
extends 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 Iterator<Document>

next

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

remove

public void remove()
Specified by:
remove in interface 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 ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.