Abstract Mutable List
Provides a skeletal implementation of the MutableList interface.
Provides a skeletal implementation of the MutableList interface.
Since Kotlin
Provides a skeletal implementation of the MutableList interface.
Provides a skeletal implementation of the MutableList interface.
Parameters
the type of elements contained in the list. The list is invariant in its element type.
the type of elements contained in the list. The list is invariant in its element type.
the type of elements contained in the list. The list is invariant in its element type.
the type of elements contained in the list. The list is invariant in its element type.
Functions
Adds all of the elements of the specified collection to the end of this list.
Removes all elements from this collection.
Removes all elements from this collection.
Removes all elements from this collection.
Checks if the specified element is contained in this collection.
Checks if the specified element is contained in this collection.
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.
Checks if all elements in the specified collection are contained in this collection.
Returns the element at the specified index in the list.
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 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 true
if the collection is empty (contains no elements), false
otherwise.
Returns an iterator over the elements of this object.
Returns an iterator over the elements of this object.
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 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.
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.
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 all of this collection's elements that are also contained in the specified collection.
Removes all of this collection's elements that are also contained in the specified collection.
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.
Retains only the elements in this collection that are 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.
Replaces the element at the specified position in this list with the specified element.