mapNotNull

fun <T, R : Any> Single<T>.mapNotNull(mapper: (T) -> R?): Maybe<R>

Same as Single.map but returns a Maybe which emits the resulting value only if it is not null, otherwise completes.