Create the new DoublyLinkedList instance.
The class used to wrap given data as linkers.
ReadonlyclassThe class used to create this instance, so that it can be recognized as valid without an instanceof check.
Whether the inner list has been initialized (it can only be initialized once).
A linker of the list (null when the list is empty); the head is found by walking back from it.
The class used to wrap the data given to this list as linkers.
Retrieve the first DoubleLinker in the list.
Retrieve the last DoubleLinker in the list. The end is remembered, so this does not walk the list.
Return the length of the list. It is kept up to date by the list's own methods, so this does not walk the list (call reset() after linkers were changed directly).
Retrieve the innerList used (the list itself, not a copy).
Be able to iterate over this class.
Add a node (or data) after the given (or last) node in the list.
The new node to add to the end of the list
The existing last node
Be able to run forEach on this DoublyLinkedList to iterate over the DoubleLinker Items.
The function to call for-each double linker
Optional, 'this' reference
The list which was iterated.
Initialize the inner list, should only run once.
Give the list of double-linkers to start in this doubly linked-list.
Insert a new node (or data) after a node.
The existing node as reference (which must be in this list, this is not checked), or null to insert at the start of the list
The new node to go after the existing node
Insert a new node (or data) before a node.
The existing node as reference (which must be in this list, this is not checked), or null to insert at the end of the list
The new node to go before the existing node
Retrieve a DoubleLinker item from this list by numeric index, otherwise return null.
The integer number for retrieving a node by position.
Add a node (or data) before the given (or first) node in the list.
The new node to add to the start of the list
The existing first node
Remove a linker from this linked list.
The node we wish to remove (and it will be returned after removal)
Refresh all references (the head, the end and the length) by walking the list once, and return the head. The list's own methods keep these up to date, so this is only needed after linkers were changed directly.
StaticfromConvert an array into a DoublyLinkedList instance, return the new instance.
An array of values which will be converted to linkers in this doubly-linked-list
The class to use for each linker
Provide the type of IsArrayable to use.
DoublyLinkedList represents a collection stored as a LinkedList with prev and next references.