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)
| 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 |
no test coverage detected