Uses of Class
io.reactivex.rxjava3.core.Maybe
Packages that use Maybe
Package
Description
Base reactive classes:
Flowable, Observable,
Single, Maybe and
Completable; base reactive consumers;
other common base interfaces.Base interfaces and types for supporting operator-fusion.
Contains the central plugin handler
RxJavaPlugins
class to hook into the lifecycle of the base reactive types and schedulers.Classes representing so-called hot sources, aka subjects, that implement a base reactive class and
the respective consumer type at once to allow forms of multicasting events to multiple
consumers as well as consuming another base reactive type of their kind.
-
Uses of Maybe in io.reactivex.rxjava3.core
Methods in io.reactivex.rxjava3.core that return MaybeModifier and TypeMethodDescriptionRuns multipleMaybeSources provided by anIterablesequence and signals the events of the first one that signals (disposing the rest).Maybe.ambArray(@NonNull MaybeSource<? extends @NonNull T>... sources) Runs multipleMaybeSources and signals the events of the first one that signals (disposing the rest).Maybe.ambWith(@NonNull MaybeSource<? extends @NonNull T> other) Mirrors theMaybeSource(current or provided) that first signals an event.Completable.andThen(@NonNull MaybeSource<@NonNull T> next) Returns aMaybewhich will subscribe to thisCompletableand once that is completed then will subscribe to thenextMaybeSource.Maybe.cache()Returns aMaybethat subscribes to thisMaybelazily, caches its event and replays it, to all the downstream subscribers.Casts the success value of the currentMaybeinto the target type or signals aClassCastExceptionif not compatible.Transform aMaybeby applying a particularMaybeTransformerfunction to it.Maybe.concatMap(@NonNull Function<? super @NonNull T, ? extends MaybeSource<? extends @NonNull R>> mapper) Returns aMaybethat is based on applying a specified function to the item emitted by the currentMaybe, where that function returns aMaybeSource.Single.concatMapMaybe(@NonNull Function<? super @NonNull T, ? extends MaybeSource<? extends @NonNull R>> mapper) Returns aMaybethat is based on applying a specified function to the item emitted by the currentSingle, where that function returns aMaybeSource.Maybe.concatMapSingle(@NonNull Function<? super @NonNull T, ? extends SingleSource<? extends @NonNull R>> mapper) Returns aMaybebased on applying a specified function to the item emitted by the currentMaybe, where that function returns aSingle.Maybe.create(@NonNull MaybeOnSubscribe<@NonNull T> onSubscribe) Provides an API (via a coldMaybe) that bridges the reactive world with the callback-style world.Calls aSupplierfor each individualMaybeObserverto return the actualMaybeSourcesource to be subscribed to.Returns aMaybethat signals the events emitted by the currentMaybeshifted forward in time by a specified delay.Returns aMaybethat signals the events emitted by the currentMaybeshifted forward in time by a specified delay.Returns aMaybethat signals the events emitted by the currentMaybeshifted forward in time by a specified delay.Returns aMaybethat signals the events emitted by the currentMaybeshifted forward in time by a specified delay running on the specifiedScheduler.Delays the emission of thisMaybeuntil the givenPublishersignals an item or completes.Maybe.delaySubscription(long time, @NonNull TimeUnit unit) Returns aMaybethat delays the subscription to the currentMaybeby a given amount of time.Maybe.delaySubscription(long time, @NonNull TimeUnit unit, @NonNull Scheduler scheduler) Returns aMaybethat delays the subscription to the currentMaybeby a given amount of time, both waiting and subscribing on a givenScheduler.Maybe.delaySubscription(@NonNull org.reactivestreams.Publisher<@NonNull U> subscriptionIndicator) Returns aMaybethat delays the subscription to thisMaybeuntil the otherPublisheremits an element or completes normally.Maybe.dematerialize(@NonNull Function<? super @NonNull T, @NonNull Notification<@NonNull R>> selector) Maps theNotificationsuccess value of the currentMaybeback into normalonSuccess,onErrororonCompletesignals.Single.dematerialize(@NonNull Function<? super @NonNull T, @NonNull Notification<@NonNull R>> selector) Maps theNotificationsuccess value of the currentSingleback into normalonSuccess,onErrororonCompletesignals as aMaybesource.Maybe.doAfterSuccess(@NonNull Consumer<? super @NonNull T> onAfterSuccess) Calls the specifiedConsumerwith the success item after this item has been emitted to the downstream.Maybe.doAfterTerminate(@NonNull Action onAfterTerminate) Calls the specified action after thisMaybesignalsonSuccess,onErrororonCompleteor gets disposed by the downstream.Maybe.doOnComplete(@NonNull Action onComplete) Maybe.doOnDispose(@NonNull Action onDispose) Calls the sharedActionif aMaybeObserversubscribed to the currentMaybedisposes the commonDisposableit received viaonSubscribe.Calls the sharedConsumerwith the error sent viaonErrorfor eachMaybeObserverthat subscribes to the currentMaybe.Maybe.doOnEvent(@NonNull BiConsumer<@Nullable ? super @NonNull T, @Nullable ? super Throwable> onEvent) Calls the givenonEventcallback with the (success value,null) for anonSuccess, (null, throwable) for anonErroror (null,null) for anonCompletesignal from thisMaybebefore delivering said signal to the downstream.Maybe.doOnLifecycle(@NonNull Consumer<? super Disposable> onSubscribe, @NonNull Action onDispose) Calls the appropriateonXXXmethod (shared between allMaybeObservers) for the lifecycle events of the sequence (subscription, disposal).Maybe.doOnSubscribe(@NonNull Consumer<? super Disposable> onSubscribe) Calls the sharedConsumerwith theDisposablesent through theonSubscribefor eachMaybeObserverthat subscribes to the currentMaybe.Maybe.doOnSuccess(@NonNull Consumer<? super @NonNull T> onSuccess) Calls the sharedConsumerwith the success value sent viaonSuccessfor eachMaybeObserverthat subscribes to the currentMaybe.Maybe.doOnTerminate(@NonNull Action onTerminate) Returns aMaybeinstance that calls the given onTerminate callback just before thisMaybecompletes normally or with an exception.Flowable.elementAt(long index) Returns aMaybethat emits the single item at a specified index in a sequence of emissions from thisFlowableor completes if thisFlowablesequence has fewer elements than index.Observable.elementAt(long index) Returns aMaybethat emits the single item at a specified index in a sequence of emissions from the currentObservableor completes if the currentObservablesignals fewer elements than index.Maybe.empty()Returns a (singleton)Maybeinstance that callsonCompleteimmediately.Returns aMaybethat invokes aMaybeObserver'sonErrormethod when theMaybeObserversubscribes to it.Returns aMaybethat invokes a subscriber'sonErrormethod when the subscriber subscribes to it.Filters the success item of theMaybevia a predicate function and emitting it if the predicate returnstrue, completing otherwise.Filters the success item of theSinglevia a predicate function and emitting it if the predicate returnstrue, completing otherwise.Flowable.firstElement()Returns aMaybethat emits only the very first item emitted by thisFlowableor completes if thisFlowableis empty.Observable.firstElement()Returns aMaybethat emits only the very first item emitted by the currentObservable, or completes if the currentObservableis empty.Maybe.flatMap(@NonNull Function<? super @NonNull T, ? extends MaybeSource<? extends @NonNull R>> mapper) Returns aMaybethat is based on applying a specified function to the item emitted by the currentMaybe, where that function returns aMaybeSource.Maybe.flatMap(@NonNull Function<? super @NonNull T, ? extends MaybeSource<? extends @NonNull R>> onSuccessMapper, @NonNull Function<? super Throwable, ? extends MaybeSource<? extends @NonNull R>> onErrorMapper, @NonNull Supplier<? extends MaybeSource<? extends @NonNull R>> onCompleteSupplier) Maps theonSuccess,onErrororonCompletesignals of the currentMaybeinto aMaybeSourceand emits thatMaybeSource's signals.Maybe.flatMap(@NonNull Function<? super @NonNull T, ? extends MaybeSource<? extends @NonNull U>> mapper, @NonNull BiFunction<? super @NonNull T, ? super @NonNull U, ? extends @NonNull R> combiner) Returns aMaybethat emits the results of a specified function to the pair of values emitted by the currentMaybeand a specified mappedMaybeSource.Single.flatMapMaybe(@NonNull Function<? super @NonNull T, ? extends MaybeSource<? extends @NonNull R>> mapper) Returns aMaybethat is based on applying a specified function to the item emitted by the currentSingle, where that function returns aMaybeSource.Maybe.flatMapSingle(@NonNull Function<? super @NonNull T, ? extends SingleSource<? extends @NonNull R>> mapper) Returns aMaybebased on applying a specified function to the item emitted by the currentMaybe, where that function returns aSingle.Maybe.fromAction(@NonNull Action action) Returns aMaybeinstance that runs the givenActionfor eachMaybeObserverand emits either its exception or simply completes.Maybe.fromCallable(@NonNull Callable<? extends @Nullable T> callable) Returns aMaybethat invokes the givenCallablefor each individualMaybeObserverthat subscribes and emits the resulting non-nullitem viaonSuccesswhile considering anullresult from theCallableas indication for valueless completion viaonComplete.Maybe.fromCompletable(@NonNull CompletableSource completableSource) Wraps aCompletableSourceinto aMaybe.Maybe.fromCompletionStage(@NonNull CompletionStage<@NonNull T> stage) Signals the completion value or error of the given (hot)CompletionStage-based asynchronous calculation.Maybe.fromFuture(@NonNull Future<? extends @NonNull T> future) Maybe.fromFuture(@NonNull Future<? extends @NonNull T> future, long timeout, @NonNull TimeUnit unit) Maybe.fromObservable(@NonNull ObservableSource<@NonNull T> source) Wraps anObservableSourceinto aMaybeand emits the very first item or completes if the source is empty.Maybe.fromOptional(@NonNull Optional<@NonNull T> optional) Converts the existing value of the provided optional into aMaybe.just(Object)or an empty optional into anMaybe.empty()Maybeinstance.Maybe.fromPublisher(@NonNull org.reactivestreams.Publisher<@NonNull T> source) Wraps aPublisherinto aMaybeand emits the very first item or completes if the source is empty.Maybe.fromRunnable(@NonNull Runnable run) Returns aMaybeinstance that runs the givenRunnablefor eachMaybeObserverand emits either its unchecked exception or simply completes.Maybe.fromSingle(@NonNull SingleSource<@NonNull T> single) Wraps aSingleSourceinto aMaybe.Maybe.fromSupplier(@NonNull Supplier<? extends @Nullable T> supplier) Returns aMaybethat invokes the givenSupplierfor each individualMaybeObserverthat subscribes and emits the resulting non-nullitem viaonSuccesswhile considering anullresult from theSupplieras indication for valueless completion viaonComplete.Maybe.hide()Hides the identity of thisMaybeand itsDisposable.Returns aMaybethat emits a specified item.Flowable.lastElement()Returns aMaybethat emits the last item emitted by thisFlowableor completes if thisFlowableis empty.Observable.lastElement()Returns aMaybethat emits the last item emitted by the currentObservableor completes if the currentObservableis empty.This method requires advanced knowledge about building operators, please consider other standard composition methods first; Returns aMaybewhich, when subscribed to, invokes theapply(MaybeObserver)method of the providedMaybeOperatorfor each individual downstreamMaybeand allows the insertion of a custom operator by accessing the downstream'sMaybeObserverduring this subscription phase and providing a newMaybeObserver, containing the custom operator's intended business logic, that will be used in the subscription process going further upstream.Returns aMaybethat applies a specified function to the item emitted by the currentMaybeand emits the result of this function application.Maybe.mapOptional(@NonNull Function<? super @NonNull T, @NonNull Optional<? extends @NonNull R>> mapper) Maps the upstream success value into anOptionaland emits the contained item if not empty.Single.mapOptional(@NonNull Function<? super @NonNull T, @NonNull Optional<? extends @NonNull R>> mapper) Maybe.merge(@NonNull MaybeSource<? extends MaybeSource<? extends @NonNull T>> source) Flattens aMaybeSourcethat emits aMaybeSourceinto a singleMaybeSourcethat emits the item emitted by the nestedMaybeSource, without any transformation.Maybe.never()Returns aMaybethat never sends any items or notifications to aMaybeObserver.Wraps aMaybeto emit its item (or notify of its error) on a specifiedScheduler, asynchronously.Filters the items emitted by the currentMaybe, only emitting its success value if that is an instance of the suppliedClass.Filters the items emitted by the currentSingle, only emitting its success value if that is an instance of the suppliedClass.Maybe.onErrorComplete()Returns aMaybeinstance that if thisMaybeemits an error, it will emit anonCompleteand swallow the throwable.Maybe.onErrorComplete(@NonNull Predicate<? super Throwable> predicate) Returns aMaybeinstance that if thisMaybeemits an error and the predicate returnstrue, it will emit anonCompleteand swallow the throwable.Single.onErrorComplete()Returns aMaybeinstance that if the currentSingleemits an error, it will emit anonCompleteand swallow the throwable.Single.onErrorComplete(@NonNull Predicate<? super Throwable> predicate) Returns aMaybeinstance that if thisSingleemits an error and the predicate returnstrue, it will emit anonCompleteand swallow the throwable.Maybe.onErrorResumeNext(@NonNull Function<? super Throwable, ? extends MaybeSource<? extends @NonNull T>> fallbackSupplier) Resumes the flow with aMaybeSourcereturned for the failureThrowableof the currentMaybeby a function instead of signaling the error viaonError.Maybe.onErrorResumeWith(@NonNull MaybeSource<? extends @NonNull T> fallback) Resumes the flow with the givenMaybeSourcewhen the currentMaybefails instead of signaling the error viaonError.Completable.onErrorReturn(@NonNull Function<? super Throwable, ? extends @NonNull T> itemSupplier) Ends the flow with a success item returned by a function for theThrowableerror signaled by the currentCompletableinstead of signaling the error viaonError.Ends the flow with a success item returned by a function for theThrowableerror signaled by the currentMaybeinstead of signaling the error viaonError.Completable.onErrorReturnItem(@NonNull T item) Ends the flow with the given success item when the currentCompletablefails instead of signaling the error viaonError.Maybe.onErrorReturnItem(@NonNull T item) Ends the flow with the given success item when the currentMaybefails instead of signaling the error viaonError.Maybe.onTerminateDetach()Nulls out references to the upstream producer and downstreamMaybeObserverif the sequence is terminated or downstream callsdispose().Returns aMaybethat applies a specified accumulator function to the first item emitted by the currentFlowable, then feeds the result of that function along with the second item emitted by the currentFlowableinto the same function, and so on until all items have been emitted by the current and finiteFlowable, and emits the final result from the final call to your function as its sole item.Returns aMaybethat applies a specified accumulator function to the first item emitted by the currentObservable, then feeds the result of that function along with the second item emitted by the currentObservableinto the same function, and so on until all items have been emitted by the current and finiteObservable, and emits the final result from the final call to your function as its sole item.Maybe.retry()Returns aMaybethat mirrors the currentMaybe, resubscribing to it if it callsonError(infinite retry count).Maybe.retry(long times) Returns aMaybethat mirrors the currentMaybe, resubscribing to it if it callsonErrorup to a specified number of retries.Retries at mosttimesor until the predicate returnsfalse, whichever happens first.Maybe.retry(@NonNull BiPredicate<? super Integer, ? super Throwable> predicate) Returns aMaybethat mirrors the currentMaybe, resubscribing to it if it callsonErrorand the predicate returnstruefor that specific exception and retry count.Retries the currentMaybeif it fails and the predicate returnstrue.Maybe.retryUntil(@NonNull BooleanSupplier stop) Retries until the given stop function returnstrue.Maybe.retryWhen(@NonNull Function<? super Flowable<Throwable>, @NonNull ? extends org.reactivestreams.Publisher<@NonNull ?>> handler) Returns aMaybethat emits the same values as the currentMaybewith the exception of anonError.Flowable.singleElement()Returns aMaybethat completes if thisFlowableis empty, signals one item if thisFlowablesignals exactly one item or signals anIllegalArgumentExceptionif thisFlowablesignals more than one item.Observable.singleElement()Returns aMaybethat completes if the currentObservableis empty or emits the single item emitted by the currentObservable, or signals anIllegalArgumentExceptionif the currentObservableemits more than one item.Maybe.subscribeOn(@NonNull Scheduler scheduler) Asynchronously subscribes subscribers to thisMaybeon the specifiedScheduler.Maybe.switchIfEmpty(@NonNull MaybeSource<? extends @NonNull T> other) Returns aMaybethat emits the items emitted by the currentMaybeor the items of an alternateMaybeSourceif the currentMaybeis empty.Maybe.takeUntil(@NonNull MaybeSource<@NonNull U> other) Returns aMaybethat emits the items emitted by the currentMaybeuntil a secondMaybeSourceemits an item.Returns aMaybethat emits the item emitted by the currentMaybeuntil a secondPublisheremits an item.Maybe.timeInterval()Measures the time (in milliseconds) between the subscription and success item emission of the currentMaybeand signals it as a tuple (Timed) success value.Maybe.timeInterval(@NonNull Scheduler scheduler) Measures the time (in milliseconds) between the subscription and success item emission of the currentMaybeand signals it as a tuple (Timed) success value.Maybe.timeInterval(@NonNull TimeUnit unit) Measures the time between the subscription and success item emission of the currentMaybeand signals it as a tuple (Timed) success value.Maybe.timeInterval(@NonNull TimeUnit unit, @NonNull Scheduler scheduler) Measures the time between the subscription and success item emission of the currentMaybeand signals it as a tuple (Timed) success value.Returns aMaybethat mirrors the currentMaybebut applies a timeout policy for each emitted item.Maybe.timeout(long timeout, @NonNull TimeUnit unit, @NonNull MaybeSource<? extends @NonNull T> fallback) Returns aMaybethat mirrors the currentMaybebut applies a timeout policy for each emitted item.Returns aMaybethat mirrors the currentMaybebut applies a timeout policy for each emitted item, where this policy is governed on a specifiedScheduler.Maybe.timeout(long timeout, @NonNull TimeUnit unit, @NonNull Scheduler scheduler, @NonNull MaybeSource<? extends @NonNull T> fallback) Returns aMaybethat mirrors the currentMaybebut applies a timeout policy for each emitted item using a specifiedScheduler.Maybe.timeout(@NonNull MaybeSource<@NonNull U> timeoutIndicator) If the currentMaybedidn't signal an event before thetimeoutIndicatorMaybeSourcesignals, aTimeoutExceptionis signaled instead.Maybe.timeout(@NonNull MaybeSource<@NonNull U> timeoutIndicator, @NonNull MaybeSource<? extends @NonNull T> fallback) If the currentMaybedidn't signal an event before thetimeoutIndicatorMaybeSourcesignals, the currentMaybeis disposed and thefallbackMaybeSourcesubscribed to as a continuation.If the currentMaybesource didn't signal an event before thetimeoutIndicatorPublishersignals, aTimeoutExceptionis signaled instead.Maybe.timeout(@NonNull org.reactivestreams.Publisher<@NonNull U> timeoutIndicator, @NonNull MaybeSource<? extends @NonNull T> fallback) If the currentMaybedidn't signal an event before thetimeoutIndicatorPublishersignals, the currentMaybeis disposed and thefallbackMaybeSourcesubscribed to as a continuation.Returns aMaybethat emits0Lafter a specified delay.Maybe.timestamp()Completable.toMaybe()Converts thisCompletableinto aMaybe.Single.toMaybe()Converts thisSingleinto aMaybe.Maybe.unsafeCreate(@NonNull MaybeSource<@NonNull T> onSubscribe) Advanced use only: creates aMaybeinstance without any safeguards by using a callback that is called with aMaybeObserver.Maybe.unsubscribeOn(@NonNull Scheduler scheduler) Returns aMaybewhich makes sure when aMaybeObserverdisposes theDisposable, that call is propagated up on the specifiedScheduler.Maybe.using(@NonNull Supplier<? extends @NonNull D> resourceSupplier, @NonNull Function<? super @NonNull D, ? extends MaybeSource<? extends @NonNull T>> sourceSupplier, @NonNull Consumer<? super @NonNull D> resourceCleanup) Constructs aMaybethat creates a dependent resource object which is disposed of when the generatedMaybeSourceterminates or the downstream calls dispose().Maybe.using(@NonNull Supplier<? extends @NonNull D> resourceSupplier, @NonNull Function<? super @NonNull D, ? extends MaybeSource<? extends @NonNull T>> sourceSupplier, @NonNull Consumer<? super @NonNull D> resourceCleanup, boolean eager) Constructs aMaybethat creates a dependent resource object which is disposed first ({code eager == true}) when the generatedMaybeSourceterminates or the downstream disposes; or after ({code eager == false}).Maybe.wrap(@NonNull MaybeSource<@NonNull T> source) static <@NonNull T1, @NonNull T2, @NonNull T3, @NonNull T4, @NonNull T5, @NonNull T6, @NonNull T7, @NonNull T8, @NonNull T9, @NonNull R>
@NonNull Maybe<R> Maybe.zip(@NonNull MaybeSource<? extends @NonNull T1> source1, @NonNull MaybeSource<? extends @NonNull T2> source2, @NonNull MaybeSource<? extends @NonNull T3> source3, @NonNull MaybeSource<? extends @NonNull T4> source4, @NonNull MaybeSource<? extends @NonNull T5> source5, @NonNull MaybeSource<? extends @NonNull T6> source6, @NonNull MaybeSource<? extends @NonNull T7> source7, @NonNull MaybeSource<? extends @NonNull T8> source8, @NonNull MaybeSource<? extends @NonNull T9> source9, @NonNull Function9<? super @NonNull T1, ? super @NonNull T2, ? super @NonNull T3, ? super @NonNull T4, ? super @NonNull T5, ? super @NonNull T6, ? super @NonNull T7, ? super @NonNull T8, ? super @NonNull T9, ? extends @NonNull R> zipper) Returns aMaybethat emits the results of a specified combiner function applied to combinations of nine items emitted, in sequence, by nine otherMaybeSources.static <@NonNull T1, @NonNull T2, @NonNull T3, @NonNull T4, @NonNull T5, @NonNull T6, @NonNull T7, @NonNull T8, @NonNull R>
@NonNull Maybe<R> Maybe.zip(@NonNull MaybeSource<? extends @NonNull T1> source1, @NonNull MaybeSource<? extends @NonNull T2> source2, @NonNull MaybeSource<? extends @NonNull T3> source3, @NonNull MaybeSource<? extends @NonNull T4> source4, @NonNull MaybeSource<? extends @NonNull T5> source5, @NonNull MaybeSource<? extends @NonNull T6> source6, @NonNull MaybeSource<? extends @NonNull T7> source7, @NonNull MaybeSource<? extends @NonNull T8> source8, @NonNull Function8<? super @NonNull T1, ? super @NonNull T2, ? super @NonNull T3, ? super @NonNull T4, ? super @NonNull T5, ? super @NonNull T6, ? super @NonNull T7, ? super @NonNull T8, ? extends @NonNull R> zipper) Returns aMaybethat emits the results of a specified combiner function applied to combinations of eight items emitted, in sequence, by eight otherMaybeSources.static <@NonNull T1, @NonNull T2, @NonNull T3, @NonNull T4, @NonNull T5, @NonNull T6, @NonNull T7, @NonNull R>
@NonNull Maybe<R> Maybe.zip(@NonNull MaybeSource<? extends @NonNull T1> source1, @NonNull MaybeSource<? extends @NonNull T2> source2, @NonNull MaybeSource<? extends @NonNull T3> source3, @NonNull MaybeSource<? extends @NonNull T4> source4, @NonNull MaybeSource<? extends @NonNull T5> source5, @NonNull MaybeSource<? extends @NonNull T6> source6, @NonNull MaybeSource<? extends @NonNull T7> source7, @NonNull Function7<? super @NonNull T1, ? super @NonNull T2, ? super @NonNull T3, ? super @NonNull T4, ? super @NonNull T5, ? super @NonNull T6, ? super @NonNull T7, ? extends @NonNull R> zipper) Returns aMaybethat emits the results of a specified combiner function applied to combinations of seven items emitted, in sequence, by seven otherMaybeSources.static <@NonNull T1, @NonNull T2, @NonNull T3, @NonNull T4, @NonNull T5, @NonNull T6, @NonNull R>
@NonNull Maybe<R> Maybe.zip(@NonNull MaybeSource<? extends @NonNull T1> source1, @NonNull MaybeSource<? extends @NonNull T2> source2, @NonNull MaybeSource<? extends @NonNull T3> source3, @NonNull MaybeSource<? extends @NonNull T4> source4, @NonNull MaybeSource<? extends @NonNull T5> source5, @NonNull MaybeSource<? extends @NonNull T6> source6, @NonNull Function6<? super @NonNull T1, ? super @NonNull T2, ? super @NonNull T3, ? super @NonNull T4, ? super @NonNull T5, ? super @NonNull T6, ? extends @NonNull R> zipper) Returns aMaybethat emits the results of a specified combiner function applied to combinations of six items emitted, in sequence, by six otherMaybeSources.static <@NonNull T1, @NonNull T2, @NonNull T3, @NonNull T4, @NonNull T5, @NonNull R>
@NonNull Maybe<R> Maybe.zip(@NonNull MaybeSource<? extends @NonNull T1> source1, @NonNull MaybeSource<? extends @NonNull T2> source2, @NonNull MaybeSource<? extends @NonNull T3> source3, @NonNull MaybeSource<? extends @NonNull T4> source4, @NonNull MaybeSource<? extends @NonNull T5> source5, @NonNull Function5<? super @NonNull T1, ? super @NonNull T2, ? super @NonNull T3, ? super @NonNull T4, ? super @NonNull T5, ? extends @NonNull R> zipper) Returns aMaybethat emits the results of a specified combiner function applied to combinations of five items emitted, in sequence, by five otherMaybeSources.Maybe.zip(@NonNull MaybeSource<? extends @NonNull T1> source1, @NonNull MaybeSource<? extends @NonNull T2> source2, @NonNull MaybeSource<? extends @NonNull T3> source3, @NonNull MaybeSource<? extends @NonNull T4> source4, @NonNull Function4<? super @NonNull T1, ? super @NonNull T2, ? super @NonNull T3, ? super @NonNull T4, ? extends @NonNull R> zipper) Returns aMaybethat emits the results of a specified combiner function applied to combinations of four items emitted, in sequence, by four otherMaybeSources.Maybe.zip(@NonNull MaybeSource<? extends @NonNull T1> source1, @NonNull MaybeSource<? extends @NonNull T2> source2, @NonNull MaybeSource<? extends @NonNull T3> source3, @NonNull Function3<? super @NonNull T1, ? super @NonNull T2, ? super @NonNull T3, ? extends @NonNull R> zipper) Returns aMaybethat emits the results of a specified combiner function applied to combinations of three items emitted, in sequence, by three otherMaybeSources.Maybe.zip(@NonNull MaybeSource<? extends @NonNull T1> source1, @NonNull MaybeSource<? extends @NonNull T2> source2, @NonNull BiFunction<? super @NonNull T1, ? super @NonNull T2, ? extends @NonNull R> zipper) Returns aMaybethat emits the results of a specified combiner function applied to combinations of two items emitted, in sequence, by two otherMaybeSources.Maybe.zip(@NonNull Iterable<@NonNull ? extends MaybeSource<? extends @NonNull T>> sources, @NonNull Function<? super Object[], ? extends @NonNull R> zipper) Returns aMaybethat emits the results of a specified combiner function applied to combinations of items emitted, in sequence, by anIterableof otherMaybeSources.Maybe.zipArray(@NonNull Function<? super Object[], ? extends @NonNull R> zipper, @NonNull MaybeSource<? extends @NonNull T>... sources) Returns aMaybethat emits the results of a specified combiner function applied to combinations of items emitted, in sequence, by an array of otherMaybeSources.Maybe.zipWith(@NonNull MaybeSource<? extends @NonNull U> other, @NonNull BiFunction<? super @NonNull T, ? super @NonNull U, ? extends @NonNull R> zipper) Waits until this and the otherMaybeSourcesignal a success value then applies the givenBiFunctionto those values and emits theBiFunction's resulting value to downstream.Methods in io.reactivex.rxjava3.core with parameters of type MaybeModifier and TypeMethodDescriptionApplies a function to the upstreamMaybeand returns a converted value of typeR.Applies a function to the upstreamMaybeand returns aMaybeSourcewith optionally different element type. -
Uses of Maybe in io.reactivex.rxjava3.internal.fuseable
Methods in io.reactivex.rxjava3.internal.fuseable that return MaybeModifier and TypeMethodDescriptionFuseToMaybe.fuseToMaybe()Returns a (direct) Maybe for the operator. -
Uses of Maybe in io.reactivex.rxjava3.internal.jdk8
Subclasses of Maybe in io.reactivex.rxjava3.internal.jdk8Modifier and TypeClassDescriptionfinal classWrap a CompletionStage and signal its outcome.final classMaybeMapOptional<T,R> Maps the success value to anOptionaland emits its non-empty value or completes.final classSingleMapOptional<T,R> Maps the success value to anOptionaland emits its non-empty value or completes.Fields in io.reactivex.rxjava3.internal.jdk8 declared as MaybeModifier and TypeFieldDescriptionMaybeFlattenStreamAsFlowable.sourceMaybeFlattenStreamAsObservable.sourceMaybeMapOptional.sourceConstructors in io.reactivex.rxjava3.internal.jdk8 with parameters of type Maybe -
Uses of Maybe in io.reactivex.rxjava3.internal.operators.completable
Subclasses of Maybe in io.reactivex.rxjava3.internal.operators.completableModifier and TypeClassDescriptionfinal classReturns a value generated via a function if the main source signals an onError. -
Uses of Maybe in io.reactivex.rxjava3.internal.operators.flowable
Subclasses of Maybe in io.reactivex.rxjava3.internal.operators.flowableModifier and TypeClassDescriptionfinal classfinal classEmits the indexth element from a Publisher as a Maybe.final classConsumes the source Publisher and emits its last item or completes.final classReduce a Flowable into a single value exposed as Single or signal NoSuchElementException.final class -
Uses of Maybe in io.reactivex.rxjava3.internal.operators.maybe
Subclasses of Maybe in io.reactivex.rxjava3.internal.operators.maybeModifier and TypeClassDescription(package private) classAbstract base class for intermediate Maybe operators that take an upstream MaybeSource.final classMaybeAmb<T>Signals the event of the first MaybeSource that signals.final classMaybeCache<T>Consumes the source once and replays its signal to any current or future MaybeObservers.final classMaybeCreate<T>Provides an API over MaybeObserver that serializes calls to onXXX and manages cancellation in a safe manner.final classMaybeDefer<T>Defers the creation of the actual Maybe the incoming MaybeObserver is subscribed to.final classMaybeDelay<T>Delays all signal types by the given amount and re-emits them on the given scheduler.final classDelay the emission of the main signal until the other signals an item or completes.final classDelay the subscription to the main Maybe until the other signals an item or completes.final classfinal classMaybeDematerialize<T,R> Maps the success value of the source to a Notification, then maps it back to the corresponding signal type.final classMaybeDetach<T>Breaks the references between the upstream and downstream when the Maybe terminates.final classCalls a consumer after pushing the current item to the downstream.final classExecute an action after an onSuccess, onError, onComplete or a dispose event.final classCalls a BiConsumer with the success, error values of the upstream Maybe or with two nulls if the Maybe completed.final classInvokes callbacks upononSubscribefrom upstream anddisposefrom downstream.final classfinal classSignals an onComplete.final classMaybeError<T>Signals a constant Throwable.final classSignals a Throwable returned by a Supplier.final classMaybeFilter<T>Filters the upstream via a predicate, returning the success item or completing if the predicate returns false.final classFilters the upstream SingleSource via a predicate, returning the success item or completing if the predicate returns false.final classMaybeFlatMapBiSelector<T,U, 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.final classMaps a value into a MaybeSource and relays its signal.final classMaybeFlatMapSingle<T,R> Maps the success value of the source MaybeSource into a Single.final classMaybeFlatten<T,R> Maps a value into a MaybeSource and relays its signal.final classExecutes an Action and signals its exception or completes normally.final classExecutes a callable and signals its value as success or signals an exception.final classWrap a Completable into a Maybe.final classWaits until the source Future completes or the wait times out; treats anullresult as indication to signalonCompleteinstead ofonSuccess.final classExecutes an Runnable and signals its exception or completes normally.final classWrap a Single into a Maybe.final classExecutes a supplier and signals its value as success or signals an exception.final classMaybeHide<T>Hides the identity of the upstream Maybe and its Disposable sent through onSubscribe.final classTurns an onSuccess into an onComplete, onError and onComplete is relayed as is.final classMaybeIsEmpty<T>Signals true if the source Maybe signals onComplete, signals false if the source Maybe signals onSuccess.final classMaybeJust<T>Signals a constant value.final classMaybeLift<T,R> Calls a MaybeOperator for the incoming MaybeObserver.final classMaybeMap<T,R> Maps the upstream success value into some other value.final classDoesn't signal any event other than onSubscribe.final classSignals the onSuccess, onError or onComplete events on a the specific scheduler.final classEmits an onComplete if the source emits an onError and the predicate returns true for that Throwable.final classSubscribes to the MaybeSource returned by a function if the main source signals an onError.final classReturns a value generated via a function if the main source signals an onError.final classMaybePeek<T>Peeks into the lifecycle of a Maybe and MaybeObserver.final classSubscribes to the upstream MaybeSource on the specified scheduler.final classSubscribes to the other source if the main source is empty.final classMaybeTakeUntilMaybe<T,U> Relays the main source's event unless the other Maybe signals an item first or just completes at which point the resulting Maybe is completed.final classRelays the main source's event unless the other Publisher signals an item first or just completes at which point the resulting Maybe is completed.final classMeasures the time between subscription and the success item emission from the upstream and emits this as aTimedsuccess value.final classMaybeTimeoutMaybe<T,U> Switches to the fallback Maybe if the other MaybeSource signals a success or completes, or signals TimeoutException if fallback is null.final classSwitches to the fallback Maybe if the other Publisher signals a success or completes, or signals TimeoutException if fallback is null.final classSignals a0Lafter the specified delay.final classWraps a MaybeSource without safeguard and calls its subscribe() method for each MaybeObserver.final classMakes sure a dispose() call from downstream happens on the specified scheduler.final classMaybeUsing<T,D> Creates a resource and a dependent Maybe for each incoming Observer and optionally disposes the resource eagerly (before the terminal event is send out).final classMaybeZipArray<T,R> final classMaybeZipIterable<T,R> Fields in io.reactivex.rxjava3.internal.operators.maybe declared as MaybeMethods in io.reactivex.rxjava3.internal.operators.maybe that return MaybeModifier and TypeMethodDescriptionMaybeIgnoreElementCompletable.fuseToMaybe()MaybeIsEmptySingle.fuseToMaybe()Constructors in io.reactivex.rxjava3.internal.operators.maybe with parameters of type MaybeModifierConstructorDescriptionMaybeDematerialize(Maybe<T> source, Function<? super T, Notification<R>> selector) MaybeDoOnLifecycle(Maybe<T> upstream, Consumer<? super Disposable> onSubscribe, Action onDispose) MaybeMaterialize(Maybe<T> source) -
Uses of Maybe in io.reactivex.rxjava3.internal.operators.observable
Subclasses of Maybe in io.reactivex.rxjava3.internal.operators.observableModifier and TypeClassDescriptionfinal classfinal classConsumes the source ObservableSource and emits its last item, the defaultItem if empty or a NoSuchElementException if even the defaultItem is null.final classReduce a sequence of values into a single value via an aggregator function and emit the final value or complete if the source is empty.final class -
Uses of Maybe in io.reactivex.rxjava3.internal.operators.single
Subclasses of Maybe in io.reactivex.rxjava3.internal.operators.singleModifier and TypeClassDescriptionfinal classSingleDematerialize<T,R> Maps the success value of the source to a Notification, then maps it back to the corresponding signal type.final classSingleFlatMapMaybe<T,R> final classEmits an onComplete if the source emits an onError and the predicate returns true for that Throwable. -
Uses of Maybe in io.reactivex.rxjava3.plugins
Fields in io.reactivex.rxjava3.plugins with type parameters of type MaybeModifier and TypeFieldDescriptionRxJavaPlugins.onMaybeAssemblyRxJavaPlugins.onMaybeAssembly(package private) static @Nullable BiFunction<? super Maybe, @NonNull ? super MaybeObserver, @NonNull ? extends MaybeObserver> RxJavaPlugins.onMaybeSubscribeMethods in io.reactivex.rxjava3.plugins that return MaybeModifier and TypeMethodDescriptionRxJavaPlugins.onAssembly(@NonNull Maybe<@NonNull T> source) Calls the associated hook function.Methods in io.reactivex.rxjava3.plugins that return types with arguments of type MaybeModifier and TypeMethodDescriptionRxJavaPlugins.getOnMaybeAssembly()Returns the current hook function.RxJavaPlugins.getOnMaybeAssembly()Returns the current hook function.static @Nullable BiFunction<? super Maybe, @NonNull ? super MaybeObserver, @NonNull ? extends MaybeObserver> RxJavaPlugins.getOnMaybeSubscribe()Returns the current hook function.Methods in io.reactivex.rxjava3.plugins with parameters of type MaybeModifier and TypeMethodDescriptionRxJavaPlugins.onAssembly(@NonNull Maybe<@NonNull T> source) Calls the associated hook function.static <@NonNull T>
@NonNull MaybeObserver<? super T> RxJavaPlugins.onSubscribe(@NonNull Maybe<@NonNull T> source, @NonNull MaybeObserver<? super @NonNull T> observer) Calls the associated hook function.Method parameters in io.reactivex.rxjava3.plugins with type arguments of type MaybeModifier and TypeMethodDescriptionstatic voidRxJavaPlugins.setOnMaybeAssembly(@Nullable Function<? super Maybe, ? extends Maybe> onMaybeAssembly) Sets the specific hook function.static voidRxJavaPlugins.setOnMaybeAssembly(@Nullable Function<? super Maybe, ? extends Maybe> onMaybeAssembly) Sets the specific hook function.static voidRxJavaPlugins.setOnMaybeSubscribe(@Nullable BiFunction<? super Maybe, @NonNull MaybeObserver, @NonNull ? extends MaybeObserver> onMaybeSubscribe) Sets the specific hook function. -
Uses of Maybe in io.reactivex.rxjava3.subjects
Subclasses of Maybe in io.reactivex.rxjava3.subjectsModifier and TypeClassDescriptionfinal classMaybeSubject<T>Represents a hot Maybe-like source and consumer of events similar to Subjects.