kmongo / kotlin.collections / com.mongodb.client.MongoIterable / filterIsInstanceTo

filterIsInstanceTo

fun <reified R, C : MutableCollection<in R>> MongoIterable<*>.filterIsInstanceTo(destination: C): C (source)

Appends all elements that are instances of specified type parameter R to the given destination.

fun <C : MutableCollection<in R>, R> MongoIterable<*>.filterIsInstanceTo(destination: C, klass: Class<R>): C (source)

Appends all elements that are instances of specified class to the given destination.