FlowableReduceMaybe$ReduceSubscriber.smali
.class final Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;
.super Ljava/lang/Object;
.source "FlowableReduceMaybe.java"
# interfaces
.implements Lio/reactivex/FlowableSubscriber;
.implements Lio/reactivex/disposables/Disposable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "ReduceSubscriber"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lio/reactivex/FlowableSubscriber<",
"TT;>;",
"Lio/reactivex/disposables/Disposable;"
}
.end annotation
# instance fields
.field final actual:Lio/reactivex/MaybeObserver;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/MaybeObserver<",
"-TT;>;"
}
.end annotation
.end field
.field done:Z
.field final reducer:Lio/reactivex/functions/BiFunction;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/BiFunction<",
"TT;TT;TT;>;"
}
.end annotation
.end field
.field s:Lorg/reactivestreams/Subscription;
.field value:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lio/reactivex/MaybeObserver;Lio/reactivex/functions/BiFunction;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/MaybeObserver<",
"-TT;>;",
"Lio/reactivex/functions/BiFunction<",
"TT;TT;TT;>;)V"
}
.end annotation
.line 71
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber<TT;>;"
.local p1, "actual":Lio/reactivex/MaybeObserver;, "Lio/reactivex/MaybeObserver<-TT;>;"
.local p2, "reducer":Lio/reactivex/functions/BiFunction;, "Lio/reactivex/functions/BiFunction<TT;TT;TT;>;"
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 72
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->actual:Lio/reactivex/MaybeObserver;
.line 73
iput-object p2, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->reducer:Lio/reactivex/functions/BiFunction;
.line 74
return-void
.end method
# virtual methods
.method public dispose()V
.registers 2
.line 78
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber<TT;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->s:Lorg/reactivestreams/Subscription;
invoke-interface {v0}, Lorg/reactivestreams/Subscription;->cancel()V
.line 79
const/4 v0, 0x1
iput-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->done:Z
.line 80
return-void
.end method
.method public isDisposed()Z
.registers 2
.line 84
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber<TT;>;"
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->done:Z
return v0
.end method
.method public onComplete()V
.registers 3
.line 129
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber<TT;>;"
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->done:Z
if-eqz v0, :cond_5
.line 130
return-void
.line 132
:cond_5
const/4 v0, 0x1
iput-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->done:Z
.line 133
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->value:Ljava/lang/Object;
.line 134
.local v0, "v":Ljava/lang/Object;, "TT;"
if-eqz v0, :cond_12
.line 136
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->actual:Lio/reactivex/MaybeObserver;
invoke-interface {v1, v0}, Lio/reactivex/MaybeObserver;->onSuccess(Ljava/lang/Object;)V
goto :goto_17
.line 138
:cond_12
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->actual:Lio/reactivex/MaybeObserver;
invoke-interface {v1}, Lio/reactivex/MaybeObserver;->onComplete()V
.line 140
:goto_17
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 3
.param p1, "t" # Ljava/lang/Throwable;
.line 119
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber<TT;>;"
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->done:Z
if-eqz v0, :cond_8
.line 120
invoke-static {p1}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
.line 121
return-void
.line 123
:cond_8
const/4 v0, 0x1
iput-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->done:Z
.line 124
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->actual:Lio/reactivex/MaybeObserver;
invoke-interface {v0, p1}, Lio/reactivex/MaybeObserver;->onError(Ljava/lang/Throwable;)V
.line 125
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 100
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber<TT;>;"
.local p1, "t":Ljava/lang/Object;, "TT;"
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->done:Z
if-eqz v0, :cond_5
.line 101
return-void
.line 103
:cond_5
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->value:Ljava/lang/Object;
.line 104
.local v0, "v":Ljava/lang/Object;, "TT;"
if-nez v0, :cond_c
.line 105
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->value:Ljava/lang/Object;
goto :goto_27
.line 108
:cond_c
:try_start_c
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->reducer:Lio/reactivex/functions/BiFunction;
invoke-interface {v1, v0, p1}, Lio/reactivex/functions/BiFunction;->apply(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
const-string v2, "The reducer returned a null value"
invoke-static {v1, v2}, Lio/reactivex/internal/functions/ObjectHelper;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object v1
iput-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->value:Ljava/lang/Object;
:try_end_1a
.catchall {:try_start_c .. :try_end_1a} :catchall_1b
.line 113
goto :goto_27
.line 109
:catchall_1b
move-exception v1
.line 110
.local v1, "ex":Ljava/lang/Throwable;
invoke-static {v1}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
.line 111
iget-object v2, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->s:Lorg/reactivestreams/Subscription;
invoke-interface {v2}, Lorg/reactivestreams/Subscription;->cancel()V
.line 112
invoke-virtual {p0, v1}, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->onError(Ljava/lang/Throwable;)V
.line 115
.end local v1 # "ex":Ljava/lang/Throwable;
:goto_27
return-void
.end method
.method public onSubscribe(Lorg/reactivestreams/Subscription;)V
.registers 4
.param p1, "s" # Lorg/reactivestreams/Subscription;
.line 89
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber<TT;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->s:Lorg/reactivestreams/Subscription;
invoke-static {v0, p1}, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->validate(Lorg/reactivestreams/Subscription;Lorg/reactivestreams/Subscription;)Z
move-result v0
if-eqz v0, :cond_17
.line 90
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->s:Lorg/reactivestreams/Subscription;
.line 92
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceMaybe$ReduceSubscriber;->actual:Lio/reactivex/MaybeObserver;
invoke-interface {v0, p0}, Lio/reactivex/MaybeObserver;->onSubscribe(Lio/reactivex/disposables/Disposable;)V
.line 94
const-wide v0, 0x7fffffffffffffffL
invoke-interface {p1, v0, v1}, Lorg/reactivestreams/Subscription;->request(J)V
.line 96
:cond_17
return-void
.end method