dataStructures
Class BinarySearchTreeWithVisit

java.lang.Object
  |
  +--dataStructures.LinkedBinaryTree
        |
        +--dataStructures.BinarySearchTree
              |
              +--dataStructures.BinarySearchTreeWithVisit

public class BinarySearchTreeWithVisit
extends BinarySearchTree


Constructor Summary
BinarySearchTreeWithVisit()
           
 
Method Summary
 java.lang.Object put(java.lang.Object theKey, java.lang.Object theElement, java.lang.reflect.Method theVisit)
          insert an element with the specified key if there is already an element with this key, simply visit the element
 
Methods inherited from class dataStructures.BinarySearchTree
ascend, get, main, put, remove
 
Methods inherited from class dataStructures.LinkedBinaryTree
add1, height, inOrder, inOrderOutput, isEmpty, levelOrder, levelOrderOutput, makeTree, output, postOrder, postOrderOutput, preOrder, preOrderOutput, removeLeftSubtree, removeRightSubtree, root, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinarySearchTreeWithVisit

public BinarySearchTreeWithVisit()
Method Detail

put

public java.lang.Object put(java.lang.Object theKey,
                            java.lang.Object theElement,
                            java.lang.reflect.Method theVisit)
insert an element with the specified key if there is already an element with this key, simply visit the element
Returns:
visited element (if any)