Class RedBlackTreeNode<K, V>

Represents a node in a binary tree.

V> - The type of the family relationship in the binary tree.

Type Parameters

  • K = any
  • V = any

    The type of data stored in the node.

Hierarchy (view full)

Constructors

Constructors

  • The constructor initializes a node with a key, value, and color for a Red-Black Tree.

    Type Parameters

    • K = any
    • V = any

    Parameters

    • key: K

      The key parameter is a key of type K that is used to identify the node in a Red-Black Tree data structure.

    • Optionalvalue: V

      The value parameter in the constructor is an optional parameter of type V. It represents the value associated with the key in the data structure being constructed.

    • Optionalcolor: RBTNColor = 'BLACK'

      The color parameter in the constructor is used to specify the color of the node in a Red-Black Tree. It has a default value of 'BLACK' if not provided explicitly.

    Returns RedBlackTreeNode<K, V>