Create the new Arrayable instance, configure the Arrayable class.
The class used to wrap given data as elements.
ReadonlyclassThe class used to create this instance, so that it can be recognized as valid without an instanceof check.
The class used to wrap the data given to this Arrayable as elements.
Whether the inner list has been initialized (it can only be initialized once).
The array which stores the elements of this Arrayable.
Retrieve the first Element from the Arrayable
The first element, or null when the Arrayable is empty
Retrieve the last Element from the Arrayable
The last element, or null when the Arrayable is empty
Return the length of the list.
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 Arrayable to iterate over the elements.
The function to call for-each element
Optional, 'this' reference
Initialize the inner list, should only run once.
Give the array of elements to start in this Arrayable.
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 an ArrayElement 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 an element from this arrayable.
The node we wish to remove (and it will be returned after removal)
The removed node, or null when it was not in this list (nothing is removed)
StaticfromConvert an array to an Arrayable.
An array of values which will be converted to elements in this arrayable
The class to use for each element
Provide the type of IsArrayable to use.
Arrayable represents a collection stored as an array.