Remove this node from the tree. The 'end' node is used as the marker which is root's parent. Note that this cannot be null!
Rotate left. This performs the following operations: - The right child becomes the parent of this node. - This node becomes the new parent's left child. - The old left child of the new parent becomes the right child of this node.
Rotate right. This performs the following operations: - The left child becomes the parent of this node. - This node becomes the new parent's right child. - The old right child of the new parent becomes the left child of this node.
Set the color of the node after it is inserted. This performs an update to the whole tree, possibly rotating nodes to keep the Red-Black properties correct. This is an O(lg(n)) operation, where n is the number of nodes in the tree.
Returns true if this node is a left child.
Get the left child
Set the left child. Also updates the new child's parent node. This does not update the previous child.
Return the leftmost descendant of this node.
Returns the next valued node in the tree.
Get the parent
Returns the previous valued node in the tree.
Get the right child
Set the right child. Also updates the new child's parent node. This does not update the previous child.
Return the rightmost descendant of this node
ordered node implementation