Optional count: numberPrivate _colorThe function creates a new RBTreeNode with the given id, value, and count and returns it as a FAMILY object.
The id parameter is the identifier for the binary tree node. It is used to uniquely
identify each node in the tree.
Optional val: null | TThe "val" parameter represents the value to be stored in the node. It can be of type T (generic type) or null.
Optional count: numberThe count parameter represents the number of occurrences of the value in the binary tree
node.
The method is returning a new instance of the RBTreeNode class, casted as a FAMILY type.
The function swaps the location of two nodes in a binary tree.
The swapNode parameter is of type FAMILY, which represents a node in a family tree.
the swapNode object after swapping its properties with the properties of this object.
Generated using TypeDoc
The
clonefunction returns a new instance of theFAMILYclass with the sameid,val, andcountproperties.