edu.ksu.cis.cadena.core.util
Class TreeNode<T1,T2>

java.lang.Object
  extended by edu.ksu.cis.cadena.core.util.TreeNode<T1,T2>
Type Parameters:
T1 - The type of the key
T2 - The type of the value

public class TreeNode<T1,T2>
extends java.lang.Object

Author:
jesse

Constructor Summary
TreeNode()
           
TreeNode(T2 value)
           
 
Method Summary
 void addChild(T1 key, TreeNode<T1,T2> child)
           
 void clearChildren()
           
 TreeNode<T1,T2> getChild(T1 key)
           
 java.util.Collection<TreeNode<T1,T2>> getChildren()
           
 java.util.Set<T1> getKeys()
           
 T2 getValue()
           
 void print(java.lang.String indent, java.io.PrintStream printStream)
           
 void SetValue(T2 value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TreeNode

public TreeNode()

TreeNode

public TreeNode(T2 value)
Method Detail

SetValue

public void SetValue(T2 value)

getValue

public T2 getValue()

addChild

public void addChild(T1 key,
                     TreeNode<T1,T2> child)

getChild

public TreeNode<T1,T2> getChild(T1 key)

clearChildren

public void clearChildren()

getChildren

public java.util.Collection<TreeNode<T1,T2>> getChildren()

getKeys

public java.util.Set<T1> getKeys()

print

public void print(java.lang.String indent,
                  java.io.PrintStream printStream)