119 lines
3.4 KiB
Smali
119 lines
3.4 KiB
Smali
.class public Lrx/internal/operators/OnSubscribeSingle;
|
|
.super Ljava/lang/Object;
|
|
.source "OnSubscribeSingle.java"
|
|
|
|
# interfaces
|
|
.implements Lrx/Single$OnSubscribe;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Lrx/Single$OnSubscribe",
|
|
"<TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field private final observable: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/OnSubscribeSingle;, "Lrx/internal/operators/OnSubscribeSingle<TT;>;"
|
|
.local p1, "observable":Lrx/Observable;, "Lrx/Observable<TT;>;"
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
iput-object p1, p0, Lrx/internal/operators/OnSubscribeSingle;->observable:Lrx/Observable;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static create(Lrx/Observable;)Lrx/internal/operators/OnSubscribeSingle;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<T:",
|
|
"Ljava/lang/Object;",
|
|
">(",
|
|
"Lrx/Observable",
|
|
"<TT;>;)",
|
|
"Lrx/internal/operators/OnSubscribeSingle",
|
|
"<TT;>;"
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
.local p0, "observable":Lrx/Observable;, "Lrx/Observable<TT;>;"
|
|
new-instance v0, Lrx/internal/operators/OnSubscribeSingle;
|
|
|
|
invoke-direct {v0, p0}, Lrx/internal/operators/OnSubscribeSingle;-><init>(Lrx/Observable;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public bridge synthetic call(Ljava/lang/Object;)V
|
|
.locals 0
|
|
.param p1, "x0" # Ljava/lang/Object;
|
|
|
|
.prologue
|
|
.local p0, "this":Lrx/internal/operators/OnSubscribeSingle;, "Lrx/internal/operators/OnSubscribeSingle<TT;>;"
|
|
check-cast p1, Lrx/SingleSubscriber;
|
|
|
|
.end local p1 # "x0":Ljava/lang/Object;
|
|
invoke-virtual {p0, p1}, Lrx/internal/operators/OnSubscribeSingle;->call(Lrx/SingleSubscriber;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public call(Lrx/SingleSubscriber;)V
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lrx/SingleSubscriber",
|
|
"<-TT;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
.local p0, "this":Lrx/internal/operators/OnSubscribeSingle;, "Lrx/internal/operators/OnSubscribeSingle<TT;>;"
|
|
.local p1, "child":Lrx/SingleSubscriber;, "Lrx/SingleSubscriber<-TT;>;"
|
|
new-instance v0, Lrx/internal/operators/OnSubscribeSingle$1;
|
|
|
|
invoke-direct {v0, p0, p1}, Lrx/internal/operators/OnSubscribeSingle$1;-><init>(Lrx/internal/operators/OnSubscribeSingle;Lrx/SingleSubscriber;)V
|
|
|
|
.local v0, "parent":Lrx/Subscriber;, "Lrx/Subscriber<TT;>;"
|
|
invoke-virtual {p1, v0}, Lrx/SingleSubscriber;->add(Lrx/Subscription;)V
|
|
|
|
iget-object v1, p0, Lrx/internal/operators/OnSubscribeSingle;->observable:Lrx/Observable;
|
|
|
|
invoke-virtual {v1, v0}, Lrx/Observable;->unsafeSubscribe(Lrx/Subscriber;)Lrx/Subscription;
|
|
|
|
return-void
|
|
.end method
|