Class SinglyLinkedListNode<NodeData>

The class which represents one link or node in a linked list

const node = new SinglyLinkedListNode(1, null, null, null);

Type Parameters

  • NodeData = any

Hierarchy

  • SinglyLinkedListNode

Constructors

Properties

Accessors

Methods

Constructors

Properties

list: null | SinglyLinkedList<NodeData>

The list this node belongs to

next: null | SinglyLinkedListNode<NodeData>

The next link in the list

prev: null | SinglyLinkedListNode<NodeData>

The previous node in the list

val: NodeData

Data stored on the node

Accessors

Methods

Generated using TypeDoc