SSF.OS.BGP4.Util
Class RadixTreeIterator

java.lang.Object
  |
  +--SSF.OS.BGP4.Util.RadixTreeIterator

public class RadixTreeIterator
extends java.lang.Object

An iterator which traverses the nodes of a RadixTree. For each node which contains (non-null) data, it executes a user-supplied function.


Field Summary
 java.lang.Object result
          A data object used to contain any results left during iteration.
 
Constructor Summary
RadixTreeIterator(RadixTree t, RadixTreeIteratorAction a)
          Constructs an iterator with a given tree and action.
 
Method Summary
 void iterate()
          Iterates over the radix tree, executing the given method on each node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

result

public java.lang.Object result
A data object used to contain any results left during iteration.

Constructor Detail

RadixTreeIterator

public RadixTreeIterator(RadixTree t,
                         RadixTreeIteratorAction a)
Constructs an iterator with a given tree and action.

Parameters:
t - The radix tree to iterate over.
a - A class containing the action to execute at each node.
Method Detail

iterate

public final void iterate()
Iterates over the radix tree, executing the given method on each node.