Abstract
The type of nodes in the list, must extend AbstractDoublyLinkedListNode
.
Abstract
[iterator]Returns an iterator for traversing the list. Supports both forward and reverse traversal.
If true
, the iterator will traverse the list in reverse order.
An iterator yielding nodes in the specified orders.
Abstract
clearResets the list to its initial empty state.
Abstract
nodeRetrieves the node at the specified index.
The zero-based index
of the node to retrieve.
The node at the specified index
, or undefined
if the index
is out of bounds.
Abstract
popRemoves and returns the last list node.
The removed node, or undefined
if the list is empty.
Abstract
pushAbstract
shiftRemoves and returns the first list node.
The removed node, or undefined
if the list is empty.
Abstract
unshift
Abstract base class for doubly linked list implementations.
Defines the contract for bidirectional linked structures that allow traversal in both directions.
Extends
AbstractLinkedList
with specialized behavior for doubly linked nodes.Example