A B C D F G M T
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- add(T) - Method in class me.legrange.tree.BinarySearchTree
-
Add a right child to a specific parent.
- add(T) - Method in class me.legrange.tree.GeneralTree
-
Add a child to the root of the tree
- add(T, T) - Method in class me.legrange.tree.GeneralTree
-
Add a child to a specific parent.
- addLeft(T) - Method in class me.legrange.tree.BinaryTree
-
Add a left child to the root of the tree
- addLeft(T, T) - Method in class me.legrange.tree.BinaryTree
-
Add a left child to a specific parent.
- addRight(T) - Method in class me.legrange.tree.BinaryTree
-
Add a right child to the root of the tree
- addRight(T, T) - Method in class me.legrange.tree.BinaryTree
-
Add a right child to a specific parent.
B
- BinarySearchTree<T extends Comparable> - Class in me.legrange.tree
- BinarySearchTree(T) - Constructor for class me.legrange.tree.BinarySearchTree
-
Create a new binary ree with the given data at the root.
- BinaryTree<T> - Class in me.legrange.tree
- BinaryTree(T) - Constructor for class me.legrange.tree.BinaryTree
-
Create a new binary ree with the given data at the root.
- breadthStream() - Method in class me.legrange.tree.GeneralTree
- breadthStream() - Method in interface me.legrange.tree.Tree
-
Return a stream that does breadth-first traversal of the tree.
C
- contains(T) - Method in class me.legrange.tree.GeneralTree
- contains(T) - Method in interface me.legrange.tree.Tree
-
Check if the tree contains the given data somewhere.
D
- depthStream() - Method in class me.legrange.tree.GeneralTree
- depthStream() - Method in interface me.legrange.tree.Tree
-
Return a stream that does depth-first traversal of the tree.
F
- find(T) - Method in class me.legrange.tree.BinarySearchTree
-
Find the data closest to the search term in the tree.
G
- GeneralTree<T> - Class in me.legrange.tree
-
A simple tree class that hides the tree implementation.
- GeneralTree(T) - Constructor for class me.legrange.tree.GeneralTree
-
Create a new tree with the given data at the root.
- getChildren(T) - Method in class me.legrange.tree.GeneralTree
-
Get the child data for specific parent data.
- getDepth() - Method in class me.legrange.tree.GeneralTree
- getDepth() - Method in interface me.legrange.tree.Tree
-
Return the depth of the tree.
- getParent(T) - Method in class me.legrange.tree.GeneralTree
- getParent(T) - Method in interface me.legrange.tree.Tree
-
Get the parent data for child data
- getRoot() - Method in class me.legrange.tree.GeneralTree
- getRoot() - Method in interface me.legrange.tree.Tree
-
Return the data at the root of the tree
- getWidth() - Method in class me.legrange.tree.GeneralTree
- getWidth() - Method in interface me.legrange.tree.Tree
-
Return the width of the tree
M
- me.legrange.tree - package me.legrange.tree
T
- Tree<T> - Interface in me.legrange.tree
-
A tree for organising data.
All Classes All Packages