Class MaybeFlatMapBiSelector<T,U,R>
- java.lang.Object
-
- io.reactivex.rxjava3.core.Maybe<R>
-
- io.reactivex.rxjava3.internal.operators.maybe.AbstractMaybeWithUpstream<T,R>
-
- io.reactivex.rxjava3.internal.operators.maybe.MaybeFlatMapBiSelector<T,U,R>
-
- Type Parameters:
T
- the main value typeU
- the second value typeR
- the result value type
- All Implemented Interfaces:
MaybeSource<R>
,HasUpstreamMaybeSource<T>
public final class MaybeFlatMapBiSelector<T,U,R> extends AbstractMaybeWithUpstream<T,R>
Maps a source item to another MaybeSource then calls a BiFunction with the original item and the secondary item to generate the final result.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
MaybeFlatMapBiSelector.FlatMapBiMainObserver<T,U,R>
-
Field Summary
Fields Modifier and Type Field Description (package private) Function<? super T,? extends MaybeSource<? extends U>>
mapper
(package private) BiFunction<? super T,? super U,? extends R>
resultSelector
-
Fields inherited from class io.reactivex.rxjava3.internal.operators.maybe.AbstractMaybeWithUpstream
source
-
-
Constructor Summary
Constructors Constructor Description MaybeFlatMapBiSelector(MaybeSource<T> source, Function<? super T,? extends MaybeSource<? extends U>> mapper, BiFunction<? super T,? super U,? extends R> resultSelector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
subscribeActual(MaybeObserver<? super R> observer)
Implement this method in subclasses to handle the incomingMaybeObserver
s.-
Methods inherited from class io.reactivex.rxjava3.internal.operators.maybe.AbstractMaybeWithUpstream
source
-
Methods inherited from class io.reactivex.rxjava3.core.Maybe
amb, ambArray, ambWith, blockingGet, blockingGet, blockingSubscribe, blockingSubscribe, blockingSubscribe, blockingSubscribe, blockingSubscribe, cache, cast, compose, concat, concat, concat, concat, concat, concat, concatArray, concatArrayDelayError, concatArrayEager, concatArrayEagerDelayError, concatDelayError, concatDelayError, concatDelayError, concatEager, concatEager, concatEager, concatEager, concatEagerDelayError, concatEagerDelayError, concatEagerDelayError, concatEagerDelayError, concatMap, concatMapCompletable, concatMapSingle, concatWith, contains, count, create, defaultIfEmpty, defer, delay, delay, delay, delay, delay, delaySubscription, delaySubscription, delaySubscription, dematerialize, doAfterSuccess, doAfterTerminate, doFinally, doOnComplete, doOnDispose, doOnError, doOnEvent, doOnLifecycle, doOnSubscribe, doOnSuccess, doOnTerminate, empty, error, error, filter, flatMap, flatMap, flatMap, flatMapCompletable, flatMapObservable, flatMapPublisher, flatMapSingle, flattenAsFlowable, flattenAsObservable, flattenStreamAsFlowable, flattenStreamAsObservable, fromAction, fromCallable, fromCompletable, fromCompletionStage, fromFuture, fromFuture, fromObservable, fromOptional, fromPublisher, fromRunnable, fromSingle, fromSupplier, hide, ignoreElement, isEmpty, just, lift, map, mapOptional, materialize, merge, merge, merge, merge, merge, merge, merge, mergeArray, mergeArrayDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeDelayError, mergeWith, never, observeOn, ofType, onErrorComplete, onErrorComplete, onErrorResumeNext, onErrorResumeWith, onErrorReturn, onErrorReturnItem, onTerminateDetach, repeat, repeat, repeatUntil, repeatWhen, retry, retry, retry, retry, retry, retryUntil, retryWhen, safeSubscribe, sequenceEqual, sequenceEqual, startWith, startWith, startWith, startWith, startWith, subscribe, subscribe, subscribe, subscribe, subscribe, subscribe, subscribeOn, subscribeWith, switchIfEmpty, switchIfEmpty, switchOnNext, switchOnNextDelayError, takeUntil, takeUntil, test, test, timeInterval, timeInterval, timeInterval, timeInterval, timeout, timeout, timeout, timeout, timeout, timeout, timeout, timeout, timer, timer, timestamp, timestamp, timestamp, timestamp, to, toCompletionStage, toCompletionStage, toFlowable, toFuture, toObservable, toSingle, unsafeCreate, unsubscribeOn, using, using, wrap, zip, zip, zip, zip, zip, zip, zip, zip, zip, zipArray, zipWith
-
-
-
-
Field Detail
-
mapper
final Function<? super T,? extends MaybeSource<? extends U>> mapper
-
resultSelector
final BiFunction<? super T,? super U,? extends R> resultSelector
-
-
Constructor Detail
-
MaybeFlatMapBiSelector
public MaybeFlatMapBiSelector(MaybeSource<T> source, Function<? super T,? extends MaybeSource<? extends U>> mapper, BiFunction<? super T,? super U,? extends R> resultSelector)
-
-
Method Detail
-
subscribeActual
protected void subscribeActual(MaybeObserver<? super R> observer)
Description copied from class:Maybe
Implement this method in subclasses to handle the incomingMaybeObserver
s.There is no need to call any of the plugin hooks on the current
Maybe
instance or theMaybeObserver
; all hooks and basic safeguards have been applied byMaybe.subscribe(MaybeObserver)
before this method gets called.- Specified by:
subscribeActual
in classMaybe<R>
- Parameters:
observer
- theMaybeObserver
to handle, notnull
-
-