Target filter
Search Kotlin docs
  • Platforms
  • Tealium Prism Kotlin
core/com.tealium.prism.core.api.pubsub/filterNotNull

filterNotNull

fun <T> Observable<T?>.filterNotNull(): Observable<T>

Convenience method for converting an observable of nullable items, into an observable of non-nullable items.

This is shorthand for mapNotNull { it } but is preferable to that since no additional anonymous class needs to be generated.

Generated by Dokka
(c) Tealium 2026