collect-your-stuff
    Preparing search index...

    Class DoubleLinker

    DoubleLinker represents a node in a DoublyLinkedList which is chained by next and prev.

    Implements

    Index
    classType: typeof DoubleLinker = DoubleLinker

    The class used to create this instance, so that it can be recognized as valid without an instanceof check.

    data: any = null

    The data stored in this linker.

    next: DoubleLinker = null

    The linker after this one, or null when this is the last.

    prev: DoubleLinker = null

    The linker before this one, or null when this is the first.

    • Convert an array into DoubleLinker instances, return the head and tail DoubleLinkers.

      Parameters

      • values: any[] = []

        Provide an array of data that will be converted to a chain of linkers.

      • classType: any = DoubleLinker

        Provide the type of IsDoubleLinker to use.

      Returns { head: any; tail: any }

    • Make a new DoubleLinker from the data given if it is not already a valid Linker.

      Parameters

      • linker: any

        Return a valid Linker instance from given data, or even an already valid one.

      • classType: any = DoubleLinker

        Provide the type of IsDoubleLinker to use.

      Returns any