com.rapidminer.example.table
Class ListDataRowReader

java.lang.Object
  extended by com.rapidminer.example.table.ListDataRowReader
All Implemented Interfaces:
DataRowReader, java.util.Iterator<DataRow>

public class ListDataRowReader
extends java.lang.Object
implements DataRowReader

Iterates over a list of DataRows. Actually a misnomer because this class does not use a list but an iterator over an arbitrary collection.

Author:
Ingo Mierswa Exp $

Constructor Summary
ListDataRowReader(java.util.Iterator<DataRow> i)
           
 
Method Summary
 boolean hasNext()
           
 DataRow next()
           
 void remove()
          Will throw a new UnsupportedOperationException since DataRowReader does not have to implement remove.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListDataRowReader

public ListDataRowReader(java.util.Iterator<DataRow> i)
Method Detail

hasNext

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

next

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

remove

public void remove()
Will throw a new UnsupportedOperationException since DataRowReader does not have to implement remove.

Specified by:
remove in interface java.util.Iterator<DataRow>


Copyright © 2001-2009 by Rapid-I