Single.smali
.class public abstract Lio/reactivex/Single;
.super Ljava/lang/Object;
# interfaces
.implements Lio/reactivex/SingleSource;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lio/reactivex/SingleSource<",
"TT;>;"
}
.end annotation
# direct methods
.method public constructor <init>()V
.registers 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static c(Ljava/util/concurrent/Callable;)Lio/reactivex/Single;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Ljava/util/concurrent/Callable<",
"+TT;>;)",
"Lio/reactivex/Single<",
"TT;>;"
}
.end annotation
const-string v0, "callable is null"
invoke-static {p0, v0}, Lio/reactivex/internal/functions/ObjectHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
new-instance v0, Lio/reactivex/internal/operators/single/SingleFromCallable;
invoke-direct {v0, p0}, Lio/reactivex/internal/operators/single/SingleFromCallable;-><init>(Ljava/util/concurrent/Callable;)V
invoke-static {v0}, Lio/reactivex/plugins/RxJavaPlugins;->k(Lio/reactivex/Single;)Lio/reactivex/Single;
move-result-object p0
return-object p0
.end method
# virtual methods
.method public final a(Lio/reactivex/SingleObserver;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/SingleObserver<",
"-TT;>;)V"
}
.end annotation
const-string v0, "subscriber is null"
invoke-static {p1, v0}, Lio/reactivex/internal/functions/ObjectHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
invoke-static {p0, p1}, Lio/reactivex/plugins/RxJavaPlugins;->q(Lio/reactivex/Single;Lio/reactivex/SingleObserver;)Lio/reactivex/SingleObserver;
move-result-object p1
const-string v0, "subscriber returned by the RxJavaPlugins hook is null"
invoke-static {p1, v0}, Lio/reactivex/internal/functions/ObjectHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
:try_start_e
invoke-virtual {p0, p1}, Lio/reactivex/Single;->f(Lio/reactivex/SingleObserver;)V
:try_end_11
.catch Ljava/lang/NullPointerException; {:try_start_e .. :try_end_11} :catch_21
.catchall {:try_start_e .. :try_end_11} :catchall_12
return-void
:catchall_12
move-exception p1
invoke-static {p1}, Lio/reactivex/exceptions/Exceptions;->b(Ljava/lang/Throwable;)V
new-instance v0, Ljava/lang/NullPointerException;
const-string v1, "subscribeActual failed"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, p1}, Ljava/lang/NullPointerException;->initCause(Ljava/lang/Throwable;)Ljava/lang/Throwable;
throw v0
:catch_21
move-exception p1
throw p1
.end method
.method public final b(Lio/reactivex/functions/Function;)Lio/reactivex/Single;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<R:",
"Ljava/lang/Object;",
">(",
"Lio/reactivex/functions/Function<",
"-TT;+",
"Lio/reactivex/SingleSource<",
"+TR;>;>;)",
"Lio/reactivex/Single<",
"TR;>;"
}
.end annotation
const-string v0, "mapper is null"
invoke-static {p1, v0}, Lio/reactivex/internal/functions/ObjectHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
new-instance v0, Lio/reactivex/internal/operators/single/SingleFlatMap;
invoke-direct {v0, p0, p1}, Lio/reactivex/internal/operators/single/SingleFlatMap;-><init>(Lio/reactivex/SingleSource;Lio/reactivex/functions/Function;)V
invoke-static {v0}, Lio/reactivex/plugins/RxJavaPlugins;->k(Lio/reactivex/Single;)Lio/reactivex/Single;
move-result-object p1
return-object p1
.end method
.method public final d(Lio/reactivex/functions/Function;)Lio/reactivex/Single;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"<R:",
"Ljava/lang/Object;",
">(",
"Lio/reactivex/functions/Function<",
"-TT;+TR;>;)",
"Lio/reactivex/Single<",
"TR;>;"
}
.end annotation
const-string v0, "mapper is null"
invoke-static {p1, v0}, Lio/reactivex/internal/functions/ObjectHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
new-instance v0, Lio/reactivex/internal/operators/single/SingleMap;
invoke-direct {v0, p0, p1}, Lio/reactivex/internal/operators/single/SingleMap;-><init>(Lio/reactivex/SingleSource;Lio/reactivex/functions/Function;)V
invoke-static {v0}, Lio/reactivex/plugins/RxJavaPlugins;->k(Lio/reactivex/Single;)Lio/reactivex/Single;
move-result-object p1
return-object p1
.end method
.method public final e(Lio/reactivex/Scheduler;)Lio/reactivex/Single;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/Scheduler;",
")",
"Lio/reactivex/Single<",
"TT;>;"
}
.end annotation
const-string v0, "scheduler is null"
invoke-static {p1, v0}, Lio/reactivex/internal/functions/ObjectHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
new-instance v0, Lio/reactivex/internal/operators/single/SingleObserveOn;
invoke-direct {v0, p0, p1}, Lio/reactivex/internal/operators/single/SingleObserveOn;-><init>(Lio/reactivex/SingleSource;Lio/reactivex/Scheduler;)V
invoke-static {v0}, Lio/reactivex/plugins/RxJavaPlugins;->k(Lio/reactivex/Single;)Lio/reactivex/Single;
move-result-object p1
return-object p1
.end method
.method protected abstract f(Lio/reactivex/SingleObserver;)V
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/SingleObserver<",
"-TT;>;)V"
}
.end annotation
.end method
.method public final g(Lio/reactivex/Scheduler;)Lio/reactivex/Single;
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/Scheduler;",
")",
"Lio/reactivex/Single<",
"TT;>;"
}
.end annotation
const-string v0, "scheduler is null"
invoke-static {p1, v0}, Lio/reactivex/internal/functions/ObjectHelper;->d(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
new-instance v0, Lio/reactivex/internal/operators/single/SingleSubscribeOn;
invoke-direct {v0, p0, p1}, Lio/reactivex/internal/operators/single/SingleSubscribeOn;-><init>(Lio/reactivex/SingleSource;Lio/reactivex/Scheduler;)V
invoke-static {v0}, Lio/reactivex/plugins/RxJavaPlugins;->k(Lio/reactivex/Single;)Lio/reactivex/Single;
move-result-object p1
return-object p1
.end method
.method public final h()Lio/reactivex/Observable;
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lio/reactivex/Observable<",
"TT;>;"
}
.end annotation
instance-of v0, p0, Lio/reactivex/internal/fuseable/FuseToObservable;
if-eqz v0, :cond_c
move-object v0, p0
check-cast v0, Lio/reactivex/internal/fuseable/FuseToObservable;
invoke-interface {v0}, Lio/reactivex/internal/fuseable/FuseToObservable;->a()Lio/reactivex/Observable;
move-result-object v0
return-object v0
:cond_c
new-instance v0, Lio/reactivex/internal/operators/single/SingleToObservable;
invoke-direct {v0, p0}, Lio/reactivex/internal/operators/single/SingleToObservable;-><init>(Lio/reactivex/SingleSource;)V
invoke-static {v0}, Lio/reactivex/plugins/RxJavaPlugins;->j(Lio/reactivex/Observable;)Lio/reactivex/Observable;
move-result-object v0
return-object v0
.end method