SMILA 1.0 API documentation

org.eclipse.smila.recordstorage.util
Class RecordIterator

java.lang.Object
  extended by org.eclipse.smila.recordstorage.util.RecordIterator
All Implemented Interfaces:
java.util.Iterator<Record>

public class RecordIterator
extends java.lang.Object
implements java.util.Iterator<Record>

An Iterator implementation that iterates over an internal Iterator of RecordDao objects and converts them to records when accessed by the next() method.


Constructor Summary
RecordIterator(java.util.Iterator<RecordDao> daoIterator)
          Conversion Constructor.
 
Method Summary
 boolean hasNext()
          
 Record next()
          
 void remove()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordIterator

public RecordIterator(java.util.Iterator<RecordDao> daoIterator)
Conversion Constructor.

Parameters:
daoIterator - a iterator over recordDao objects
Method Detail

hasNext

public boolean hasNext()

Specified by:
hasNext in interface java.util.Iterator<Record>
See Also:
Iterator.hasNext()

next

public Record next()

Specified by:
next in interface java.util.Iterator<Record>
See Also:
Iterator.next()

remove

public void remove()

Specified by:
remove in interface java.util.Iterator<Record>
See Also:
Iterator.remove()

SMILA 1.0 API documentation