CompletableFromPublisher$FromPublisherSubscriber.smali
.class final Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber;
.super Ljava/lang/Object;
.source "CompletableFromPublisher.java"
# interfaces
.implements Lio/reactivex/FlowableSubscriber;
.implements Lio/reactivex/disposables/Disposable;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/completable/CompletableFromPublisher;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "FromPublisherSubscriber"
.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 cs:Lio/reactivex/CompletableObserver;
.field s:Lorg/reactivestreams/Subscription;
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lio/reactivex/CompletableObserver;)V
.registers 2
.param p1, "actual" # Lio/reactivex/CompletableObserver;
.line 41
.local p0, "this":Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber;, "Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber<TT;>;"
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 42
iput-object p1, p0, Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber;->cs:Lio/reactivex/CompletableObserver;
.line 43
return-void
.end method
# virtual methods
.method public dispose()V
.registers 2
.line 74
.local p0, "this":Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber;, "Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber<TT;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber;->s:Lorg/reactivestreams/Subscription;
invoke-interface {v0}, Lorg/reactivestreams/Subscription;->cancel()V
.line 75
sget-object v0, Lio/reactivex/internal/subscriptions/SubscriptionHelper;->CANCELLED:Lio/reactivex/internal/subscriptions/SubscriptionHelper;
iput-object v0, p0, Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber;->s:Lorg/reactivestreams/Subscription;
.line 76
return-void
.end method
.method public isDisposed()Z
.registers 3
.line 80
.local p0, "this":Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber;, "Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber<TT;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber;->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 2
.line 69
.local p0, "this":Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber;, "Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber<TT;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber;->cs:Lio/reactivex/CompletableObserver;
invoke-interface {v0}, Lio/reactivex/CompletableObserver;->onComplete()V
.line 70
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 3
.param p1, "t" # Ljava/lang/Throwable;
.line 64
.local p0, "this":Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber;, "Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber<TT;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber;->cs:Lio/reactivex/CompletableObserver;
invoke-interface {v0, p1}, Lio/reactivex/CompletableObserver;->onError(Ljava/lang/Throwable;)V
.line 65
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 60
.local p0, "this":Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber;, "Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber<TT;>;"
.local p1, "t":Ljava/lang/Object;, "TT;"
return-void
.end method
.method public onSubscribe(Lorg/reactivestreams/Subscription;)V
.registers 4
.param p1, "s" # Lorg/reactivestreams/Subscription;
.line 47
.local p0, "this":Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber;, "Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber<TT;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber;->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 48
iput-object p1, p0, Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber;->s:Lorg/reactivestreams/Subscription;
.line 50
iget-object v0, p0, Lio/reactivex/internal/operators/completable/CompletableFromPublisher$FromPublisherSubscriber;->cs:Lio/reactivex/CompletableObserver;
invoke-interface {v0, p0}, Lio/reactivex/CompletableObserver;->onSubscribe(Lio/reactivex/disposables/Disposable;)V
.line 52
const-wide v0, 0x7fffffffffffffffL
invoke-interface {p1, v0, v1}, Lorg/reactivestreams/Subscription;->request(J)V
.line 54
:cond_17
return-void
.end method