MutableCollection
A generic collection of elements that supports adding and removing elements.
Since Kotlin
1.0Parameters
E
the type of elements contained in the collection. The mutable collection is invariant in its element type.
Functions
Link copied to clipboard
Adds all of the elements of the specified collection to this collection.
Since Kotlin 1.0
Link copied to clipboard
Checks if all elements in the specified collection are contained in this collection.
Since Kotlin 1.0
Link copied to clipboard
Returns an iterator over the elements of this object.
Since Kotlin 1.0
Link copied to clipboard
Removes all of this collection's elements that are also contained in the specified collection.
Since Kotlin 1.0
Link copied to clipboard
Retains only the elements in this collection that are contained in the specified collection.
Since Kotlin 1.0
Properties
Inheritors
Extensions
Link copied to clipboard
Link copied to clipboard
fun <C : MutableCollection<in R>, R> Iterable<*>.filterIsInstanceTo(destination: C, klass: Class<R>): C
Appends all elements that are instances of specified class to the given destination.
Since Kotlin 1.0
Link copied to clipboard
Link copied to clipboard
Returns a typed array containing all of the elements of this collection.
Since Kotlin 1.0