MutableCollection
A generic collection of elements that supports adding and removing elements.
Since Kotlin
1.0A generic collection of elements that supports adding and removing elements.
Since Kotlin
1.1Parameters
the type of elements contained in the collection. The mutable collection is invariant in its element type.
the type of elements contained in the collection. The mutable collection is invariant in its element type.
Functions
Adds all of the elements of the specified collection to this collection.
Adds all of the elements of the specified collection to 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 an iterator over the elements of this object.
Returns an iterator over the elements of this object.
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.
Properties
Inheritors
Extensions
Appends all elements that are instances of specified class to the given destination.
Returns a new SortedSet of all elements.