collect-your-stuff
    Preparing search index...

    Class Linker

    Linker represents a node in a LinkedList.

    Implements

    Index
    • Create the new Linker instance, provide the data and optionally give the next Linker.

      Parameters

      • nodeData: { data?: any; next?: Linker } = {}

        The settings for the new linker.

        • Optionaldata?: any

          The data to be stored in this linker

        • Optionalnext?: Linker

          The reference to the next linker if any

      Returns Linker

    classType: typeof Linker = Linker

    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: Linker = null

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

    • Convert an array into Linker instances, return the head and tail Linkers.

      Parameters

      • values: any[] = []

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

      • classType: any = Linker

        Provide the type of IsLinker to use.

      Returns { head: IsLinker; tail: IsLinker }

    • Make a new Linker 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 = Linker

        Provide the type of IsLinker to use.

      Returns any