strikt-core / strikt.assertions / filterIsInstance

filterIsInstance

fun <reified R> Builder<out Iterable<*>>.filterIsInstance(): Builder<List<R>>

Maps this assertion to an assertion over a list of all elements of the subject that are instances of R.

See Also

Iterable.filterIsInstance