OnSubscribeSwitchIfEmpty$AlternateSubscriber.smali
.class final Lrx/internal/operators/OnSubscribeSwitchIfEmpty$AlternateSubscriber;
.super Lrx/Subscriber;
.source "OnSubscribeSwitchIfEmpty.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lrx/internal/operators/OnSubscribeSwitchIfEmpty;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "AlternateSubscriber"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lrx/Subscriber<",
"TT;>;"
}
.end annotation
# instance fields
.field private final arbiter:Lrx/internal/producers/ProducerArbiter;
.field private final child:Lrx/Subscriber;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/Subscriber<",
"-TT;>;"
}
.end annotation
.end field
# direct methods
.method constructor <init>(Lrx/Subscriber;Lrx/internal/producers/ProducerArbiter;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/Subscriber<",
"-TT;>;",
"Lrx/internal/producers/ProducerArbiter;",
")V"
}
.end annotation
.line 1
invoke-direct {p0}, Lrx/Subscriber;-><init>()V
.line 2
iput-object p1, p0, Lrx/internal/operators/OnSubscribeSwitchIfEmpty$AlternateSubscriber;->child:Lrx/Subscriber;
.line 3
iput-object p2, p0, Lrx/internal/operators/OnSubscribeSwitchIfEmpty$AlternateSubscriber;->arbiter:Lrx/internal/producers/ProducerArbiter;
return-void
.end method
# virtual methods
.method public onCompleted()V
.registers 2
.line 1
iget-object v0, p0, Lrx/internal/operators/OnSubscribeSwitchIfEmpty$AlternateSubscriber;->child:Lrx/Subscriber;
invoke-interface {v0}, Lrx/Observer;->onCompleted()V
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 3
.line 1
iget-object v0, p0, Lrx/internal/operators/OnSubscribeSwitchIfEmpty$AlternateSubscriber;->child:Lrx/Subscriber;
invoke-interface {v0, p1}, Lrx/Observer;->onError(Ljava/lang/Throwable;)V
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
iget-object v0, p0, Lrx/internal/operators/OnSubscribeSwitchIfEmpty$AlternateSubscriber;->child:Lrx/Subscriber;
invoke-interface {v0, p1}, Lrx/Observer;->onNext(Ljava/lang/Object;)V
.line 2
iget-object p1, p0, Lrx/internal/operators/OnSubscribeSwitchIfEmpty$AlternateSubscriber;->arbiter:Lrx/internal/producers/ProducerArbiter;
const-wide/16 v0, 0x1
invoke-virtual {p1, v0, v1}, Lrx/internal/producers/ProducerArbiter;->produced(J)V
return-void
.end method
.method public setProducer(Lrx/Producer;)V
.registers 3
.line 1
iget-object v0, p0, Lrx/internal/operators/OnSubscribeSwitchIfEmpty$AlternateSubscriber;->arbiter:Lrx/internal/producers/ProducerArbiter;
invoke-virtual {v0, p1}, Lrx/internal/producers/ProducerArbiter;->setProducer(Lrx/Producer;)V
return-void
.end method