public MutableTreeNode leftShift(MutableTreeNode node)
- 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..
- same treeNode, after the value was added to it.
public void putAt(int index, MutableTreeNode node)
- 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 index.
node - the node to insert at the given index.