119 lines
3.7 KiB
Smali
119 lines
3.7 KiB
Smali
.class public final Lrx/internal/operators/OperatorSwitchIfEmpty;
|
|
.super Ljava/lang/Object;
|
|
.source "OperatorSwitchIfEmpty.java"
|
|
|
|
# interfaces
|
|
.implements Lrx/Observable$Operator;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lrx/internal/operators/OperatorSwitchIfEmpty$AlternateSubscriber;,
|
|
Lrx/internal/operators/OperatorSwitchIfEmpty$ParentSubscriber;
|
|
}
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lrx/Observable$Operator",
|
|
"<TT;TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final alternate:Lrx/Observable;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lrx/Observable",
|
|
"<+TT;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lrx/Observable;)V
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/Observable",
|
|
"<+TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
.local p0, "this":Lrx/internal/operators/OperatorSwitchIfEmpty;, "Lrx/internal/operators/OperatorSwitchIfEmpty<TT;>;"
|
|
.local p1, "alternate":Lrx/Observable;, "Lrx/Observable<+TT;>;"
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lrx/internal/operators/OperatorSwitchIfEmpty;->alternate:Lrx/Observable;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
|
|
.locals 1
|
|
.param p1, "x0" # Ljava/lang/Object;
|
|
|
|
.prologue
|
|
.local p0, "this":Lrx/internal/operators/OperatorSwitchIfEmpty;, "Lrx/internal/operators/OperatorSwitchIfEmpty<TT;>;"
|
|
check-cast p1, Lrx/Subscriber;
|
|
|
|
.end local p1 # "x0":Ljava/lang/Object;
|
|
invoke-virtual {p0, p1}, Lrx/internal/operators/OperatorSwitchIfEmpty;->call(Lrx/Subscriber;)Lrx/Subscriber;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public call(Lrx/Subscriber;)Lrx/Subscriber;
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/Subscriber",
|
|
"<-TT;>;)",
|
|
"Lrx/Subscriber",
|
|
"<-TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
.local p0, "this":Lrx/internal/operators/OperatorSwitchIfEmpty;, "Lrx/internal/operators/OperatorSwitchIfEmpty<TT;>;"
|
|
.local p1, "child":Lrx/Subscriber;, "Lrx/Subscriber<-TT;>;"
|
|
new-instance v2, Lrx/subscriptions/SerialSubscription;
|
|
|
|
invoke-direct {v2}, Lrx/subscriptions/SerialSubscription;-><init>()V
|
|
|
|
.local v2, "ssub":Lrx/subscriptions/SerialSubscription;
|
|
new-instance v0, Lrx/internal/producers/ProducerArbiter;
|
|
|
|
invoke-direct {v0}, Lrx/internal/producers/ProducerArbiter;-><init>()V
|
|
|
|
.local v0, "arbiter":Lrx/internal/producers/ProducerArbiter;
|
|
new-instance v1, Lrx/internal/operators/OperatorSwitchIfEmpty$ParentSubscriber;
|
|
|
|
iget-object v3, p0, Lrx/internal/operators/OperatorSwitchIfEmpty;->alternate:Lrx/Observable;
|
|
|
|
invoke-direct {v1, p1, v2, v0, v3}, Lrx/internal/operators/OperatorSwitchIfEmpty$ParentSubscriber;-><init>(Lrx/Subscriber;Lrx/subscriptions/SerialSubscription;Lrx/internal/producers/ProducerArbiter;Lrx/Observable;)V
|
|
|
|
.local v1, "parent":Lrx/internal/operators/OperatorSwitchIfEmpty$ParentSubscriber;, "Lrx/internal/operators/OperatorSwitchIfEmpty$ParentSubscriber<TT;>;"
|
|
invoke-virtual {v2, v1}, Lrx/subscriptions/SerialSubscription;->set(Lrx/Subscription;)V
|
|
|
|
invoke-virtual {p1, v2}, Lrx/Subscriber;->add(Lrx/Subscription;)V
|
|
|
|
invoke-virtual {p1, v0}, Lrx/Subscriber;->setProducer(Lrx/Producer;)V
|
|
|
|
return-object v1
|
|
.end method
|