Return type | Name and parameters |
---|---|
MutableTreeNode
|
leftShift(MutableTreeNode node)
Overloads the left shift operator to provide an easy way to add nodes to a MutableTreeNode. |
void
|
putAt(int index, MutableTreeNode node)
Allow MutableTreeNode to work with subscript operators. |
Overloads the left shift operator to provide an easy way to add nodes to a MutableTreeNode.
node
- a node to be added to the treeNode.Allow MutableTreeNode to work with subscript operators.
WARNING: this operation does not replace the node at the specified index, rather it inserts the node at that index, thus increasing the size of the treeNode by 1.
index
- an indexnode
- the node to insert at the given index