| Modifier and Type | Interface and Description |
|---|---|
interface |
BinarySearchTreeInterface<E extends KeyedElementInterface<K>,K extends java.lang.Comparable<? super K>> |
class |
TreeElementIterator<E extends KeyedElementInterface<K>,K extends java.lang.Comparable<? super K>>
The TreeIterator allows a user of a BinarySearchTree to iterate through the TreeItems currently in the tree
in one of the following Key orders:
preOrder
inOrder
postOrder
Users will set the desired order and access the TreeItems using the Iterator interface.
|
class |
TreeNode<E extends KeyedElementInterface<K>,K extends java.lang.Comparable<? super K>> |
| Modifier and Type | Class and Description |
|---|---|
class |
Person<K extends java.lang.Comparable<? super K>>
This class will be used as the element type that will be inserted into our HashTable.
|
| Modifier and Type | Field and Description |
|---|---|
private E |
TreeNode.element
This instance variable holds the element that is in the BinarySearchTree
|
| Modifier and Type | Method and Description |
|---|---|
KeyedElementInterface<K> |
Person.copy() |
KeyedElementInterface<K> |
KeyedElementInterface.copy()
This method makes a deep copy of the KeyedElement.
|