public class Driver extends java.lang.Object implements DriverInterface
| Modifier and Type | Field and Description |
|---|---|
private static int |
COUNT_OF_OBJECTS |
private static int |
RANDOM_RANGE |
| Constructor and Description |
|---|
Driver() |
| Modifier and Type | Method and Description |
|---|---|
BinarySearchTree<java.lang.Integer,java.lang.String> |
createAndPopulateBST(java.util.Vector<TreeItem<java.lang.Integer,java.lang.String>> treeItems)
This method will create a new BinarySearchTree<Integer,String> and fully populate it with all the
contents of the specified Vector treeItems
|
java.util.Vector<TreeItem<java.lang.Integer,java.lang.String>> |
getVectorOfTreeItems()
This method is used to obtain a Vector<TreeItem<Integer,String>> with
131,071
TreeItem objects. |
static void |
main(java.lang.String[] args) |
private static final int COUNT_OF_OBJECTS
private static final int RANDOM_RANGE
public java.util.Vector<TreeItem<java.lang.Integer,java.lang.String>> getVectorOfTreeItems()
DriverInterface
This method is used to obtain a Vector<TreeItem<Integer,String>> with
131,071 TreeItem objects.
getVectorOfTreeItems in interface DriverInterfaceTreeItem objects.public BinarySearchTree<java.lang.Integer,java.lang.String> createAndPopulateBST(java.util.Vector<TreeItem<java.lang.Integer,java.lang.String>> treeItems)
DriverInterfacecreateAndPopulateBST in interface DriverInterfacetreeItems - A Vector of TreeItem<Integer,String> objects to be inserted into the BinarySearchTreepublic static void main(java.lang.String[] args)