FlowableCollectSingle$CollectSubscriber.smali
.class final Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;
.super Ljava/lang/Object;
.source "FlowableCollectSingle.java"
# interfaces
.implements Lio/reactivex/FlowableSubscriber;
.implements Lio/reactivex/disposables/Disposable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/flowable/FlowableCollectSingle;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "CollectSubscriber"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"U:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lio/reactivex/FlowableSubscriber<",
"TT;>;",
"Lio/reactivex/disposables/Disposable;"
}
.end annotation
# instance fields
.field final actual:Lio/reactivex/SingleObserver;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/SingleObserver<",
"-TU;>;"
}
.end annotation
.end field
.field final collector:Lio/reactivex/functions/BiConsumer;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/BiConsumer<",
"-TU;-TT;>;"
}
.end annotation
.end field
.field done:Z
.field s:Lorg/reactivestreams/Subscription;
.field final u:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TU;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lio/reactivex/SingleObserver;Ljava/lang/Object;Lio/reactivex/functions/BiConsumer;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/SingleObserver<",
"-TU;>;TU;",
"Lio/reactivex/functions/BiConsumer<",
"-TU;-TT;>;)V"
}
.end annotation
.line 72
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber<TT;TU;>;"
.local p1, "actual":Lio/reactivex/SingleObserver;, "Lio/reactivex/SingleObserver<-TU;>;"
.local p2, "u":Ljava/lang/Object;, "TU;"
.local p3, "collector":Lio/reactivex/functions/BiConsumer;, "Lio/reactivex/functions/BiConsumer<-TU;-TT;>;"
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 73
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->actual:Lio/reactivex/SingleObserver;
.line 74
iput-object p3, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->collector:Lio/reactivex/functions/BiConsumer;
.line 75
iput-object p2, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->u:Ljava/lang/Object;
.line 76
return-void
.end method
# virtual methods
.method public dispose()V
.registers 2
.line 124
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber<TT;TU;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->s:Lorg/reactivestreams/Subscription;
invoke-interface {v0}, Lorg/reactivestreams/Subscription;->cancel()V
.line 125
sget-object v0, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
iput-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->s:Lorg/reactivestreams/Subscription;
.line 126
return-void
.end method
.method public isDisposed()Z
.registers 3
.line 130
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber<TT;TU;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->s:Lorg/reactivestreams/Subscription;
sget-object v1, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
if-ne v0, v1, :cond_8
const/4 v0, 0x1
goto :goto_9
:cond_8
const/4 v0, 0x0
:goto_9
return v0
.end method
.method public onComplete()V
.registers 3
.line 114
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber<TT;TU;>;"
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->done:Z
if-eqz v0, :cond_5
.line 115
return-void
.line 117
:cond_5
const/4 v0, 0x1
iput-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->done:Z
.line 118
sget-object v0, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
iput-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->s:Lorg/reactivestreams/Subscription;
.line 119
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->actual:Lio/reactivex/SingleObserver;
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->u:Ljava/lang/Object;
invoke-interface {v0, v1}, Lio/reactivex/SingleObserver;->onSuccess(Ljava/lang/Object;)V
.line 120
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 3
.param p1, "t" # Ljava/lang/Throwable;
.line 103
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber<TT;TU;>;"
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->done:Z
if-eqz v0, :cond_8
.line 104
invoke-static {p1}, Lio/reactivex/plugins/RxJavaPlugins;->onError(Ljava/lang/Throwable;)V
.line 105
return-void
.line 107
:cond_8
const/4 v0, 0x1
iput-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->done:Z
.line 108
sget-object v0, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
iput-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->s:Lorg/reactivestreams/Subscription;
.line 109
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->actual:Lio/reactivex/SingleObserver;
invoke-interface {v0, p1}, Lio/reactivex/SingleObserver;->onError(Ljava/lang/Throwable;)V
.line 110
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 89
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber<TT;TU;>;"
.local p1, "t":Ljava/lang/Object;, "TT;"
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->done:Z
if-eqz v0, :cond_5
.line 90
return-void
.line 93
:cond_5
:try_start_5
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->collector:Lio/reactivex/functions/BiConsumer;
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->u:Ljava/lang/Object;
invoke-interface {v0, v1, p1}, Lio/reactivex/functions/BiConsumer;->accept(Ljava/lang/Object;Ljava/lang/Object;)V
:try_end_c
.catchall {:try_start_5 .. :try_end_c} :catchall_d
.line 98
goto :goto_19
.line 94
:catchall_d
move-exception v0
.line 95
.local v0, "e":Ljava/lang/Throwable;
invoke-static {v0}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
.line 96
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->s:Lorg/reactivestreams/Subscription;
invoke-interface {v1}, Lorg/reactivestreams/Subscription;->cancel()V
.line 97
invoke-virtual {p0, v0}, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->onError(Ljava/lang/Throwable;)V
.line 99
.end local v0 # "e":Ljava/lang/Throwable;
:goto_19
return-void
.end method
.method public onSubscribe(Lorg/reactivestreams/Subscription;)V
.registers 4
.param p1, "s" # Lorg/reactivestreams/Subscription;
.line 80
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber<TT;TU;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->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 81
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->s:Lorg/reactivestreams/Subscription;
.line 82
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableCollectSingle$CollectSubscriber;->actual:Lio/reactivex/SingleObserver;
invoke-interface {v0, p0}, Lio/reactivex/SingleObserver;->onSubscribe(Lio/reactivex/disposables/Disposable;)V
.line 83
const-wide v0, 0x7fffffffffffffffL
invoke-interface {p1, v0, v1}, Lorg/reactivestreams/Subscription;->request(J)V
.line 85
:cond_17
return-void
.end method