Class FlowableReduceMaybe<T>
java.lang.Object
io.reactivex.rxjava3.core.Maybe<T>
io.reactivex.rxjava3.internal.operators.flowable.FlowableReduceMaybe<T>
- Type Parameters:
T- the value type
- All Implemented Interfaces:
MaybeSource<T>, FuseToFlowable<T>, HasUpstreamPublisher<T>
public final class FlowableReduceMaybe<T>
extends Maybe<T>
implements HasUpstreamPublisher<T>, FuseToFlowable<T>
Reduce a Flowable into a single value exposed as Single or signal NoSuchElementException.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a (direct) Flowable for the operator.org.reactivestreams.Publisher<T> source()Returns the source Publisher.protected voidsubscribeActual(MaybeObserver<? super T> observer) Implement this method in subclasses to handle the incomingMaybeObservers.Methods inherited from class 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 Details
-
source
-
reducer
-
-
Constructor Details
-
FlowableReduceMaybe
-
-
Method Details
-
source
Description copied from interface:HasUpstreamPublisherReturns the source Publisher.This method is intended to discover the assembly graph of sequences.
- Specified by:
sourcein interfaceHasUpstreamPublisher<T>- Returns:
- the source Publisher
-
fuseToFlowable
Description copied from interface:FuseToFlowableReturns a (direct) Flowable for the operator.The implementation should handle the necessary RxJavaPlugins wrapping.
- Specified by:
fuseToFlowablein interfaceFuseToFlowable<T>- Returns:
- the Flowable instance
-
subscribeActual
Description copied from class:MaybeImplement this method in subclasses to handle the incomingMaybeObservers.There is no need to call any of the plugin hooks on the current
Maybeinstance or theMaybeObserver; all hooks and basic safeguards have been applied byMaybe.subscribe(MaybeObserver)before this method gets called.- Specified by:
subscribeActualin classMaybe<T>- Parameters:
observer- theMaybeObserverto handle, notnull
-