infovis.utils
Class RBTree.KeyIterator
java.lang.Object
infovis.utils.RBTree.RBNodeIterator
infovis.utils.RBTree.KeyIterator
- All Implemented Interfaces:
- RowIterator, Iterator
- Enclosing class:
- RBTree
public class RBTree.KeyIterator
- extends RBTree.RBNodeIterator
- implements RowIterator
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. |
RBTree.KeyIterator
public RBTree.KeyIterator()
RBTree.KeyIterator
public RBTree.KeyIterator(RBTree.RBNode node)
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.