Abstract Linked Lists - v1.0.4
    Preparing search index...

    Class AbstractDoublyLinkedList<N>Abstract

    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.

    class MyDoublyLinkedList extends AbstractDoublyLinkedList {
    // Implement abstract methods
    }

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Returns an iterator for traversing the list. Supports both forward and reverse traversal.

      Parameters

      • reversed: boolean

        If true, the iterator will traverse the list in reverse order.

      Returns Generator<N, void, void>

      An iterator yielding nodes in the specified orders.