Create the new LinkedList 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).
The first linker of the list (null when the list is empty), from which the whole list is reached.
The class used to wrap the data given to this list as linkers.
Retrieve the first Linker in the list.
Retrieve the last Linker 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 LinkedList to iterate over the linkers.
The function to call for-each linker
Optional, 'this' reference
Initialize the inner list, should only run once.
Give the list of linkers to start in this linked-list.
Insert a new node (or data) after a node.
The existing node as reference, 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, or null to insert at the end of the list
The new node to go before the existing node
Retrieve a Linker 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
Refresh the remembered end and length of the list by walking it once. The list's own methods keep these up to date, so this is only needed after linkers were changed directly (for example by setting next on a linker).
The first linker of the list
StaticfromConvert an array to a LinkedList.
An array of values which will be converted to linkers in this linked-list
The class to use for each linker
Provide the type of IsArrayable to use.
LinkedList represents a collection stored as a LinkedList with next references.