infovis.utils
Class FilteredRowIterator

java.lang.Object
  extended by infovis.utils.RowIteratorProxy
      extended by infovis.utils.FilteredRowIterator
All Implemented Interfaces:
RowIterator, Iterator

public class FilteredRowIterator
extends RowIteratorProxy

Class FilteredRowIterator

Version:
$Revision: 1.1 $
Author:
Jean-Daniel Fekete

Constructor Summary
FilteredRowIterator(RowIterator iterator, RowFilter filter)
           
 
Method Summary
 RowIterator copy()
          Clone myself with the right type returned.
 boolean hasNext()
           
 Object next()
           
 int nextRow()
          Returns the next row after incrementing the iterator.
 int peekRow()
          Returns the next row without incrementing the iterator.
 void remove()
           
 
Methods inherited from class infovis.utils.RowIteratorProxy
toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FilteredRowIterator

public FilteredRowIterator(RowIterator iterator,
                           RowFilter filter)
Method Detail

nextRow

public int nextRow()
Description copied from interface: RowIterator
Returns the next row after incrementing the iterator.

Specified by:
nextRow in interface RowIterator
Overrides:
nextRow in class RowIteratorProxy
Returns:
the next row.

next

public Object next()
Specified by:
next in interface Iterator
Overrides:
next in class RowIteratorProxy

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator
Overrides:
hasNext in class RowIteratorProxy

peekRow

public int peekRow()
Description copied from interface: RowIterator
Returns the next row without incrementing the iterator.

Specified by:
peekRow in interface RowIterator
Overrides:
peekRow in class RowIteratorProxy
Returns:
the next row.

copy

public RowIterator copy()
Description copied from interface: RowIterator
Clone myself with the right type returned.

Specified by:
copy in interface RowIterator
Overrides:
copy in class RowIteratorProxy
Returns:
a copy of myself.

remove

public void remove()
Specified by:
remove in interface Iterator
Overrides:
remove in class RowIteratorProxy


Copyright 2005 by Jean-Daniel Fekete and INRIA, France All rights reserved.