MCPcopy Index your code
hub / github.com/ReactiveX/RxJava / flatMapMaybe

Method flatMapMaybe

src/main/java/io/reactivex/rxjava3/core/Single.java:3476–3482  ·  view source on GitHub ↗

Returns a Maybe that is based on applying a specified function to the item emitted by the current Single, where that function returns a MaybeSource. <img width="640" height="191" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/Single.flatMapMaybe.png

(@NonNull Function<? super T, ? extends MaybeSource<? extends R>> mapper)

Source from the content-addressed store, hash-verified

3474 * @see <a href="http://reactivex.io/documentation/operators/flatmap.html">ReactiveX operators documentation: FlatMap</a>
3475 */
3476 @CheckReturnValue
3477 @NonNull
3478 @SchedulerSupport(SchedulerSupport.NONE)
3479 public final <@NonNull R> Maybe<R> flatMapMaybe(@NonNull Function<? super T, ? extends MaybeSource<? extends R>> mapper) {
3480 Objects.requireNonNull(mapper, "mapper is null");
3481 return RxJavaPlugins.onAssembly(new SingleFlatMapMaybe<>(this, mapper));
3482 }
3483
3484 /**
3485 * Returns a {@link Flowable} that emits items based on applying a specified function to the item emitted by the

Callers 15

concatMapMaybeMethod · 0.95
setupMethod · 0.45
setupMethod · 0.45
setupMethod · 0.45
setupMethod · 0.45
setupMethod · 0.45
flowableMaybeMethod · 0.45
observerMaybeMethod · 0.45
singleMaybeMethod · 0.45
normalMethod · 0.45
normalEmptyMethod · 0.45

Calls 1

onAssemblyMethod · 0.95

Tested by 15

flowableMaybeMethod · 0.36
observerMaybeMethod · 0.36
singleMaybeMethod · 0.36
normalMethod · 0.36
normalEmptyMethod · 0.36
normalDelayErrorMethod · 0.36
normalAsyncMethod · 0.36
mapperThrowsFlowableMethod · 0.36