Abstract Mutable Collection
Provides a skeletal implementation of the MutableCollection interface.
Since Kotlin
Provides a skeletal implementation of the MutableCollection interface.
Since Kotlin
Provides a skeletal implementation of the MutableCollection interface.
Provides a skeletal implementation of the MutableCollection interface.
Parameters
the type of elements contained in the collection. The collection is invariant in its element type.
the type of elements contained in the collection. The collection is invariant in its element type.
the type of elements contained in the collection. The collection is invariant in its element type.
the type of elements contained in the collection. The collection is invariant in its element type.
Functions
Adds the specified element to the collection.
Adds the specified element to the collection.
Adds all of the elements of the specified collection to this collection.
Adds all of the elements of the specified collection to this collection.
Adds all of the elements of the specified collection to this collection.
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 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.
Removes a single instance of the specified element from this collection, if it is present.
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.
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.