Array List
Provides a MutableList implementation, which uses a resizable array as its backing storage.
This implementation doesn't provide a way to manage capacity, as backing JS array is resizeable itself. There is no speed advantage to pre-allocating array sizes in JavaScript, so this implementation does not include any of the capacity and "growth increment" concepts.
Constructors
Functions
Adds all of the elements of the specified collection to the end of this list.
Adds all of the elements of the specified collection to the end of this list.
Checks if all elements in the specified collection are contained in this collection.
Checks if all elements in the specified collection are contained in this collection.
Does nothing in this ArrayList implementation.
Returns the element at the specified index in the list.
Returns the index of the first occurrence of the specified element in the list, or -1 if the specified element is not contained in the list.
Returns true
if the collection is empty (contains no elements), false
otherwise.
Returns an iterator over the elements of this object.
Returns the index of the last occurrence of the specified element in the list, or -1 if the specified element is not contained in the list.
Returns the index of the last occurrence of the specified element in the list, or -1 if the specified element is not contained in the list.
Returns a list iterator over the elements in this list (in proper sequence).
Returns a list iterator over the elements in this list (in proper sequence), starting at the specified index.
Removes a single instance of the specified element from this collection, if it is present.
Removes all of this collection's elements that are also contained in the specified collection.
Retains only the elements in this collection that are contained in the specified collection.
Replaces the element at the specified position in this list with the specified element.
Does nothing in this ArrayList implementation.