Collection
A generic collection of elements. Methods in this interface support only read-only access to the collection; read/write access is supported through the MutableCollection interface.
Since Kotlin
1.0Parameters
E
the type of elements contained in the collection. The collection is covariant in its element type.
Functions
Link copied to clipboard
Checks if the specified element is contained in 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
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