Class ListNode<K, V>

A node in a doubly linked list.

Type Parameters

  • K

    The type of the key.

  • V

    The type of the value.

Constructors

Properties

Constructors

  • Constructs a new instance of the ListNode class.

    Type Parameters

    • K
    • V

    Parameters

    • key: K

      The key of the node.

    • value: V

      The value of the node.

    Returns ListNode<K, V>

Properties

key: K

The key of the node.

next: undefined | ListNode<K, V> = undefined

The next node in the list.

prev: undefined | ListNode<K, V> = undefined

The previous node in the list.

value: V

The value of the node.