infovis.utils
Interface RowIterator

All Superinterfaces:
Iterator
All Known Implementing Classes:
AbstractRowIterator, AppendRowIterator, ArrayChildrenIterator, ColumnIterator, FilteredRowIterator, IdManagerIterator, NullRowIterator, RBTree.KeyIterator, RowIteratorProxy, TableIterator

public interface RowIterator
extends Iterator

Iterator over rows on Columns or Tables. Two new methods provide a faster access to the rows, instead of creating an Integer object at each invocation.

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

Method Summary
 RowIterator copy()
          Clone myself with the right type returned.
 int nextRow()
          Returns the next row after incrementing the iterator.
 int peekRow()
          Returns the next row without incrementing the iterator.
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Method Detail

nextRow

int nextRow()
Returns the next row after incrementing the iterator.

Returns:
the next row.

peekRow

int peekRow()
Returns the next row without incrementing the iterator.

Returns:
the next row.

copy

RowIterator copy()
Clone myself with the right type returned.

Returns:
a copy of myself.


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