infovis.utils
Class RBTree.KeyIterator

java.lang.Object
  extended by infovis.utils.RBTree.RBNodeIterator
      extended by infovis.utils.RBTree.KeyIterator
All Implemented Interfaces:
RowIterator, Iterator
Enclosing class:
RBTree

public class RBTree.KeyIterator
extends RBTree.RBNodeIterator
implements RowIterator


Constructor Summary
RBTree.KeyIterator()
           
RBTree.KeyIterator(RBTree.RBNode node)
           
 
Method Summary
 RowIterator copy()
          Clone myself with the right type returned.
 Object next()
           
 int nextRow()
          Returns the next row after incrementing the iterator.
 int peekRow()
          Returns the next row without incrementing the iterator.
 
Methods inherited from class infovis.utils.RBTree.RBNodeIterator
hasNext, nextNode, remove
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Iterator
hasNext, remove
 

Constructor Detail

RBTree.KeyIterator

public RBTree.KeyIterator()

RBTree.KeyIterator

public RBTree.KeyIterator(RBTree.RBNode node)
Method Detail

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.

next

public Object next()
Specified by:
next in interface Iterator
Overrides:
next in class RBTree.RBNodeIterator

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.

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.


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