Class DoublyLinkedListNode<T>

data-structure-typed

Author

Tyler Zeng

Copyright

Copyright (c) 2022 Tyler Zeng zrwusa@gmail.com

License

MIT License

Type Parameters

  • T = number

Hierarchy

  • DoublyLinkedListNode

Constructors

Accessors

Constructors

  • The constructor function initializes the value, next, and previous properties of an object.

    Type Parameters

    • T = number

    Parameters

    • val: T

      The "val" parameter is the value that will be stored in the node. It can be of any data type, as it is defined as a generic type "T".

    Returns DoublyLinkedListNode<T>

Properties

_next: any
_prev: any
_val: any

Accessors

  • get next(): null | DoublyLinkedListNode<T>
  • Returns null | DoublyLinkedListNode<T>

  • set next(value): void
  • Parameters

    Returns void

  • get prev(): null | DoublyLinkedListNode<T>
  • Returns null | DoublyLinkedListNode<T>

  • set prev(value): void
  • Parameters

    Returns void

  • get val(): T
  • Returns T

  • set val(value): void
  • Parameters

    • value: T

    Returns void

Generated using TypeDoc