infovis.utils
Class NullRowIterator

java.lang.Object
  extended by infovis.utils.NullRowIterator
All Implemented Interfaces:
RowIterator, Cloneable, Iterator

public class NullRowIterator
extends Object
implements RowIterator, Cloneable

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

Constructor Summary
NullRowIterator()
           
 
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()
           
static NullRowIterator sharedInstance()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NullRowIterator

public NullRowIterator()
Method Detail

sharedInstance

public static NullRowIterator sharedInstance()

nextRow

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

Specified by:
nextRow in interface RowIterator
Returns:
the next row.
See Also:
RowIterator.nextRow()

peekRow

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

Specified by:
peekRow in interface RowIterator
Returns:
the next row.
See Also:
RowIterator.peekRow()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator
See Also:
Iterator.hasNext()

next

public Object next()
Specified by:
next in interface Iterator
See Also:
Iterator.next()

remove

public void remove()
Specified by:
remove in interface Iterator
See Also:
Iterator.remove()

copy

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

Specified by:
copy in interface RowIterator
Returns:
a copy of myself.
See Also:
RowIterator.copy()


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