Documentation / dataflow-async / com.femastudios.dataflow.async.extensions / filterIsInstance
Go to reference
Go to reference
filterIsInstance
fun <R> Attribute<Iterable<*>>.filterIsInstance(klass: Attribute<Class<R>>): Attribute<List<R>>
fun <R> Attribute<Iterable<*>>.filterIsInstance(klass: Class<R>): Attribute<List<R>>
fun <reified R> Attribute<Iterable<*>>.filterIsInstance(): Attribute<List<R>>
Same as filterIsInstance, but accepts Attribute and returns a new Attribute.
Calling this function is equivalent to use transform and calling filterIsInstance in the transformation function.
This is simply a convenience function.
See Also
kotlin.collections.filterIsInstance
fun <R> Attribute<Sequence<*>>.filterIsInstance(klass: Attribute<Class<R>>): Attribute<Sequence<R>>
fun <R> Attribute<Sequence<*>>.filterIsInstance(klass: Class<R>): Attribute<Sequence<R>>
fun <reified R> Attribute<Sequence<*>>.filterIsInstance(): Attribute<Sequence<R>>
Same as filterIsInstance, but accepts Attribute and returns a new Attribute.
Calling this function is equivalent to use transform and calling filterIsInstance in the transformation function.
This is simply a convenience function.
See Also