Uses of Interface
io.reactivex.rxjava3.functions.Predicate
Packages that use Predicate
Package
Description
Base reactive classes:
Flowable, Observable,
Single, Maybe and
Completable; base reactive consumers;
other common base interfaces.Default wrappers and implementations for observer-based consumer classes and interfaces,
including disposable and resource-tracking variants and
the
TestObserver that allows unit testing
Observable-, Single-,
Maybe- and Completable-based flows.Contains the base type
ParallelFlowable,
a sub-DSL for working with Flowable sequences in parallel.-
Uses of Predicate in io.reactivex.rxjava3.core
Methods in io.reactivex.rxjava3.core with parameters of type PredicateModifier and TypeMethodDescriptionReturns aSinglethat emitstrueif any item emitted by the currentFlowablesatisfies a specified condition, otherwisefalse.Returns aSinglethat emitstrueif any item emitted by the currentObservablesatisfies a specified condition, otherwisefalse.Filters items emitted by the currentFlowableby only emitting those that satisfy a specified predicate.Filters the success item of theMaybevia a predicate function and emitting it if the predicate returnstrue, completing otherwise.final @NonNull Observable<T> Filters items emitted by the currentObservableby only emitting those that satisfy a specifiedPredicate.Filters the success item of theSinglevia a predicate function and emitting it if the predicate returnstrue, completing otherwise.final @NonNull DisposableFlowable.forEachWhile(@NonNull Predicate<? super @NonNull T> onNext) Subscribes to the currentFlowableand receives notifications for each element until theonNextPredicate returnsfalse.final @NonNull DisposableFlowable.forEachWhile(@NonNull Predicate<? super @NonNull T> onNext, @NonNull Consumer<? super Throwable> onError) Subscribes to the currentFlowableand receives notifications for each element and error events until theonNextPredicate returnsfalse.final @NonNull DisposableFlowable.forEachWhile(@NonNull Predicate<? super @NonNull T> onNext, @NonNull Consumer<? super Throwable> onError, @NonNull Action onComplete) Subscribes to the currentFlowableand receives notifications for each element and the terminal events until theonNextPredicate returnsfalse.final @NonNull DisposableObservable.forEachWhile(@NonNull Predicate<? super @NonNull T> onNext) Subscribes to theObservableSourceand calls aPredicatefor each item of the currentObservable, on its emission thread, until the predicate returnsfalse.final @NonNull DisposableObservable.forEachWhile(@NonNull Predicate<? super @NonNull T> onNext, @NonNull Consumer<? super Throwable> onError) Subscribes to theObservableSourceand calls aPredicatefor each item or aConsumerwith the error of the currentObservable, on their original emission threads, until the predicate returnsfalse.final @NonNull DisposableObservable.forEachWhile(@NonNull Predicate<? super @NonNull T> onNext, @NonNull Consumer<? super Throwable> onError, @NonNull Action onComplete) Subscribes to theObservableSourceand calls aPredicatefor each item, aConsumerwith the error or anActionupon completion of the currentObservable, on their original emission threads, until the predicate returnsfalse.final @NonNull CompletableCompletable.onErrorComplete(@NonNull Predicate<? super Throwable> predicate) Flowable.onErrorComplete(@NonNull Predicate<? super Throwable> predicate) Returns aFlowableinstance that if the currentFlowableemits an error and the predicate returnstrue, 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.final @NonNull Observable<T> Observable.onErrorComplete(@NonNull Predicate<? super Throwable> predicate) Returns anObservableinstance that if the currentObservableemits an error and the predicate returnstrue, 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.final @NonNull CompletableReturns aCompletablethat when thisCompletableemits an error, retries at most times or until the predicate returnsfalse, whichever happens first and emitting the last error.final @NonNull CompletableReturns aCompletablethat when thisCompletableemits an error, calls the given predicate with the latestThrowableto decide whether to resubscribe to the upstream or not.Retries at most times or until the predicate returnsfalse, whichever happens first.Retries the currentFlowableif the predicate returnstrue.Retries at mosttimesor until the predicate returnsfalse, whichever happens first.Retries the currentMaybeif it fails and the predicate returnstrue.final @NonNull Observable<T> Retries at most times or until the predicate returnsfalse, whichever happens first.final @NonNull Observable<T> Retries the currentObservableif the predicate returnstrue.Repeatedly re-subscribe at most times or until the predicate returnsfalse, whichever happens first if it fails with anonError.Re-subscribe to the currentSingleif the given predicate returnstruewhen theSinglefails with anonError.Returns aFlowablethat skips all items emitted by the currentFlowableas long as a specified condition holdstrue, but emits all further source items as soon as the condition becomesfalse.final @NonNull Observable<T> Returns anObservablethat skips all items emitted by the currentObservableas long as a specified condition holdstrue, but emits all further source items as soon as the condition becomesfalse.Returns aFlowablethat emits items emitted by the currentFlowable, checks the specified predicate for each item, and then completes when the condition is satisfied.final @NonNull Observable<T> Returns anObservablethat emits items emitted by the currentObservable, checks the specified predicate for each item, and then completes when the condition is satisfied.Returns aFlowablethat emits items emitted by the currentFlowableso long as each item satisfied a specified condition, and then completes as soon as this condition is not satisfied.final @NonNull Observable<T> Returns anObservablethat emits items emitted by the currentObservableso long as each item satisfied a specified condition, and then completes as soon as this condition is not satisfied. -
Uses of Predicate in io.reactivex.rxjava3.internal.functions
Methods in io.reactivex.rxjava3.internal.functions that return PredicateModifier and TypeMethodDescriptionFunctions.alwaysFalse()Functions.alwaysTrue()static <T> Predicate<T> Functions.equalsWith(T value) static <T,U> Predicate <T> Functions.isInstanceOf(Class<U> clazz) static <T> Predicate<T> Functions.predicateReverseFor(BooleanSupplier supplier) -
Uses of Predicate in io.reactivex.rxjava3.internal.observers
Constructors in io.reactivex.rxjava3.internal.observers with parameters of type Predicate -
Uses of Predicate in io.reactivex.rxjava3.internal.operators.completable
Constructors in io.reactivex.rxjava3.internal.operators.completable with parameters of type PredicateModifierConstructorDescriptionCompletableOnErrorComplete(CompletableSource source, Predicate<? super Throwable> predicate) -
Uses of Predicate in io.reactivex.rxjava3.internal.operators.flowable
Constructors in io.reactivex.rxjava3.internal.operators.flowable with parameters of type PredicateModifierConstructorDescriptionFlowableAll(Flowable<T> source, Predicate<? super T> predicate) FlowableAllSingle(Flowable<T> source, Predicate<? super T> predicate) FlowableAny(Flowable<T> source, Predicate<? super T> predicate) FlowableAnySingle(Flowable<T> source, Predicate<? super T> predicate) FlowableFilter(Flowable<T> source, Predicate<? super T> predicate) FlowableOnErrorComplete(Flowable<T> source, Predicate<? super Throwable> predicate) FlowableRetryPredicate(Flowable<T> source, long count, Predicate<? super Throwable> predicate) FlowableSkipWhile(Flowable<T> source, Predicate<? super T> predicate) FlowableTakeUntilPredicate(Flowable<T> source, Predicate<? super T> predicate) FlowableTakeWhile(Flowable<T> source, Predicate<? super T> predicate) OnErrorCompleteSubscriber(org.reactivestreams.Subscriber<? super T> actual, Predicate<? super Throwable> predicate) -
Uses of Predicate in io.reactivex.rxjava3.internal.operators.maybe
Constructors in io.reactivex.rxjava3.internal.operators.maybe with parameters of type PredicateModifierConstructorDescriptionMaybeFilter(MaybeSource<T> source, Predicate<? super T> predicate) MaybeFilterSingle(SingleSource<T> source, Predicate<? super T> predicate) MaybeOnErrorComplete(MaybeSource<T> source, Predicate<? super Throwable> predicate) OnErrorCompleteMultiObserver(MaybeObserver<? super T> actual, Predicate<? super Throwable> predicate) -
Uses of Predicate in io.reactivex.rxjava3.internal.operators.observable
Constructors in io.reactivex.rxjava3.internal.operators.observable with parameters of type PredicateModifierConstructorDescriptionObservableAll(ObservableSource<T> source, Predicate<? super T> predicate) ObservableAllSingle(ObservableSource<T> source, Predicate<? super T> predicate) ObservableAny(ObservableSource<T> source, Predicate<? super T> predicate) ObservableAnySingle(ObservableSource<T> source, Predicate<? super T> predicate) ObservableFilter(ObservableSource<T> source, Predicate<? super T> predicate) ObservableOnErrorComplete(ObservableSource<T> source, Predicate<? super Throwable> predicate) ObservableRetryPredicate(Observable<T> source, long count, Predicate<? super Throwable> predicate) ObservableSkipWhile(ObservableSource<T> source, Predicate<? super T> predicate) ObservableTakeUntilPredicate(ObservableSource<T> source, Predicate<? super T> predicate) ObservableTakeWhile(ObservableSource<T> source, Predicate<? super T> predicate) OnErrorCompleteObserver(Observer<? super T> actual, Predicate<? super Throwable> predicate) -
Uses of Predicate in io.reactivex.rxjava3.internal.operators.parallel
Constructors in io.reactivex.rxjava3.internal.operators.parallel with parameters of type PredicateModifierConstructorDescriptionParallelFilter(ParallelFlowable<T> source, Predicate<? super T> predicate) ParallelFilterTry(ParallelFlowable<T> source, Predicate<? super T> predicate, BiFunction<? super Long, ? super Throwable, ParallelFailureHandling> errorHandler) -
Uses of Predicate in io.reactivex.rxjava3.internal.operators.single
Constructors in io.reactivex.rxjava3.internal.operators.single with parameters of type PredicateModifierConstructorDescriptionSingleOnErrorComplete(Single<T> source, Predicate<? super Throwable> predicate) -
Uses of Predicate in io.reactivex.rxjava3.internal.subscribers
Constructors in io.reactivex.rxjava3.internal.subscribers with parameters of type Predicate -
Uses of Predicate in io.reactivex.rxjava3.internal.util
Subinterfaces of Predicate in io.reactivex.rxjava3.internal.utilModifier and TypeInterfaceDescriptionstatic interfacePredicate interface suppressing the exception. -
Uses of Predicate in io.reactivex.rxjava3.observers
Methods in io.reactivex.rxjava3.observers with parameters of type PredicateModifier and TypeMethodDescriptionfinal UBaseTestConsumer.assertError(@NonNull Predicate<Throwable> errorPredicate) Asserts that thisTestObserver/TestSubscriberreceived exactly oneonErrorevent for which the provided predicate returnstrue.final UBaseTestConsumer.assertValue(@NonNull Predicate<T> valuePredicate) Asserts that thisTestObserver/TestSubscriberreceived exactly oneonNextvalue for which the provided predicate returnstrue.final UBaseTestConsumer.assertValueAt(int index, @NonNull Predicate<T> valuePredicate) Asserts that thisTestObserver/TestSubscriberreceived anonNextvalue at the given index for the provided predicate returnstrue. -
Uses of Predicate in io.reactivex.rxjava3.parallel
Methods in io.reactivex.rxjava3.parallel with parameters of type PredicateModifier and TypeMethodDescriptionfinal @NonNull ParallelFlowable<T> Filters the source values on each 'rail'.final @NonNull ParallelFlowable<T> ParallelFlowable.filter(@NonNull Predicate<? super @NonNull T> predicate, @NonNull BiFunction<? super Long, ? super Throwable, ParallelFailureHandling> errorHandler) Filters the source values on each 'rail' and handles errors based on the returned value by the handler function.final @NonNull ParallelFlowable<T> ParallelFlowable.filter(@NonNull Predicate<? super @NonNull T> predicate, @NonNull ParallelFailureHandling errorHandler) Filters the source values on each 'rail' and handles errors based on the givenParallelFailureHandlingenumeration value.