221 lines
6.9 KiB
Smali
221 lines
6.9 KiB
Smali
|
.class public Lrx/internal/operators/SingleOperatorOnErrorResumeNext;
|
||
|
.super Ljava/lang/Object;
|
||
|
.source "SingleOperatorOnErrorResumeNext.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 originalSingle:Lrx/Single;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Lrx/Single",
|
||
|
"<+TT;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field private final resumeFunctionInCaseOfError:Lrx/functions/Func1;
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"Lrx/functions/Func1",
|
||
|
"<",
|
||
|
"Ljava/lang/Throwable;",
|
||
|
"+",
|
||
|
"Lrx/Single",
|
||
|
"<+TT;>;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method private constructor <init>(Lrx/Single;Lrx/functions/Func1;)V
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"(",
|
||
|
"Lrx/Single",
|
||
|
"<+TT;>;",
|
||
|
"Lrx/functions/Func1",
|
||
|
"<",
|
||
|
"Ljava/lang/Throwable;",
|
||
|
"+",
|
||
|
"Lrx/Single",
|
||
|
"<+TT;>;>;)V"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.local p0, "this":Lrx/internal/operators/SingleOperatorOnErrorResumeNext;, "Lrx/internal/operators/SingleOperatorOnErrorResumeNext<TT;>;"
|
||
|
.local p1, "originalSingle":Lrx/Single;, "Lrx/Single<+TT;>;"
|
||
|
.local p2, "resumeFunctionInCaseOfError":Lrx/functions/Func1;, "Lrx/functions/Func1<Ljava/lang/Throwable;+Lrx/Single<+TT;>;>;"
|
||
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
new-instance v0, Ljava/lang/NullPointerException;
|
||
|
|
||
|
const-string v1, "originalSingle must not be null"
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_0
|
||
|
if-nez p2, :cond_1
|
||
|
|
||
|
new-instance v0, Ljava/lang/NullPointerException;
|
||
|
|
||
|
const-string v1, "resumeFunctionInCaseOfError must not be null"
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_1
|
||
|
iput-object p1, p0, Lrx/internal/operators/SingleOperatorOnErrorResumeNext;->originalSingle:Lrx/Single;
|
||
|
|
||
|
iput-object p2, p0, Lrx/internal/operators/SingleOperatorOnErrorResumeNext;->resumeFunctionInCaseOfError:Lrx/functions/Func1;
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method static synthetic access$000(Lrx/internal/operators/SingleOperatorOnErrorResumeNext;)Lrx/functions/Func1;
|
||
|
.locals 1
|
||
|
.param p0, "x0" # Lrx/internal/operators/SingleOperatorOnErrorResumeNext;
|
||
|
|
||
|
.prologue
|
||
|
iget-object v0, p0, Lrx/internal/operators/SingleOperatorOnErrorResumeNext;->resumeFunctionInCaseOfError:Lrx/functions/Func1;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public static withFunction(Lrx/Single;Lrx/functions/Func1;)Lrx/internal/operators/SingleOperatorOnErrorResumeNext;
|
||
|
.locals 1
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<T:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">(",
|
||
|
"Lrx/Single",
|
||
|
"<+TT;>;",
|
||
|
"Lrx/functions/Func1",
|
||
|
"<",
|
||
|
"Ljava/lang/Throwable;",
|
||
|
"+",
|
||
|
"Lrx/Single",
|
||
|
"<+TT;>;>;)",
|
||
|
"Lrx/internal/operators/SingleOperatorOnErrorResumeNext",
|
||
|
"<TT;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.local p0, "originalSingle":Lrx/Single;, "Lrx/Single<+TT;>;"
|
||
|
.local p1, "resumeFunctionInCaseOfError":Lrx/functions/Func1;, "Lrx/functions/Func1<Ljava/lang/Throwable;+Lrx/Single<+TT;>;>;"
|
||
|
new-instance v0, Lrx/internal/operators/SingleOperatorOnErrorResumeNext;
|
||
|
|
||
|
invoke-direct {v0, p0, p1}, Lrx/internal/operators/SingleOperatorOnErrorResumeNext;-><init>(Lrx/Single;Lrx/functions/Func1;)V
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public static withOther(Lrx/Single;Lrx/Single;)Lrx/internal/operators/SingleOperatorOnErrorResumeNext;
|
||
|
.locals 2
|
||
|
.annotation system Ldalvik/annotation/Signature;
|
||
|
value = {
|
||
|
"<T:",
|
||
|
"Ljava/lang/Object;",
|
||
|
">(",
|
||
|
"Lrx/Single",
|
||
|
"<+TT;>;",
|
||
|
"Lrx/Single",
|
||
|
"<+TT;>;)",
|
||
|
"Lrx/internal/operators/SingleOperatorOnErrorResumeNext",
|
||
|
"<TT;>;"
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
.prologue
|
||
|
.local p0, "originalSingle":Lrx/Single;, "Lrx/Single<+TT;>;"
|
||
|
.local p1, "resumeSingleInCaseOfError":Lrx/Single;, "Lrx/Single<+TT;>;"
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
new-instance v0, Ljava/lang/NullPointerException;
|
||
|
|
||
|
const-string v1, "resumeSingleInCaseOfError must not be null"
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
|
||
|
:cond_0
|
||
|
new-instance v0, Lrx/internal/operators/SingleOperatorOnErrorResumeNext;
|
||
|
|
||
|
new-instance v1, Lrx/internal/operators/SingleOperatorOnErrorResumeNext$1;
|
||
|
|
||
|
invoke-direct {v1, p1}, Lrx/internal/operators/SingleOperatorOnErrorResumeNext$1;-><init>(Lrx/Single;)V
|
||
|
|
||
|
invoke-direct {v0, p0, v1}, Lrx/internal/operators/SingleOperatorOnErrorResumeNext;-><init>(Lrx/Single;Lrx/functions/Func1;)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/SingleOperatorOnErrorResumeNext;, "Lrx/internal/operators/SingleOperatorOnErrorResumeNext<TT;>;"
|
||
|
check-cast p1, Lrx/SingleSubscriber;
|
||
|
|
||
|
.end local p1 # "x0":Ljava/lang/Object;
|
||
|
invoke-virtual {p0, p1}, Lrx/internal/operators/SingleOperatorOnErrorResumeNext;->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/SingleOperatorOnErrorResumeNext;, "Lrx/internal/operators/SingleOperatorOnErrorResumeNext<TT;>;"
|
||
|
.local p1, "child":Lrx/SingleSubscriber;, "Lrx/SingleSubscriber<-TT;>;"
|
||
|
new-instance v0, Lrx/internal/operators/SingleOperatorOnErrorResumeNext$2;
|
||
|
|
||
|
invoke-direct {v0, p0, p1}, Lrx/internal/operators/SingleOperatorOnErrorResumeNext$2;-><init>(Lrx/internal/operators/SingleOperatorOnErrorResumeNext;Lrx/SingleSubscriber;)V
|
||
|
|
||
|
.local v0, "parent":Lrx/SingleSubscriber;, "Lrx/SingleSubscriber<-TT;>;"
|
||
|
invoke-virtual {p1, v0}, Lrx/SingleSubscriber;->add(Lrx/Subscription;)V
|
||
|
|
||
|
iget-object v1, p0, Lrx/internal/operators/SingleOperatorOnErrorResumeNext;->originalSingle:Lrx/Single;
|
||
|
|
||
|
invoke-virtual {v1, v0}, Lrx/Single;->subscribe(Lrx/SingleSubscriber;)Lrx/Subscription;
|
||
|
|
||
|
return-void
|
||
|
.end method
|