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

Method map

src/main/java/io/reactivex/rxjava3/core/Maybe.java:4351–4357  ·  view source on GitHub ↗

Returns a Maybe that applies a specified function to the item emitted by the current Maybe and emits the result of this function application. Sch

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

Source from the content-addressed store, hash-verified

4349 * @see <a href="http://reactivex.io/documentation/operators/map.html">ReactiveX operators documentation: Map</a>
4350 */
4351 @CheckReturnValue
4352 @NonNull
4353 @SchedulerSupport(SchedulerSupport.NONE)
4354 public final <@NonNull R> Maybe<R> map(@NonNull Function<? super T, ? extends R> mapper) {
4355 Objects.requireNonNull(mapper, "mapper is null");
4356 return RxJavaPlugins.onAssembly(new MaybeMap<>(this, mapper));
4357 }
4358
4359 /**
4360 * Maps the signal types of this {@code Maybe} into a {@link Notification} of the same kind

Callers 12

castMethod · 0.95
merge1SyncStreamOfNMethod · 0.45
mergeNSyncStreamsOfNMethod · 0.45
mergeNAsyncStreamsOfNMethod · 0.45
callMethod · 0.45
applyMethod · 0.45
setupMethod · 0.45
fromOptionalMethod · 0.45
applyMethod · 0.45
applyMethod · 0.45
createWorkerMethod · 0.45

Calls 1

onAssemblyMethod · 0.95

Tested by

no test coverage detected