f$a.smali
.class public final Lio/reactivex/internal/operators/single/f$a;
.super Ljava/util/concurrent/atomic/AtomicReference;
.source "SourceFile"
# interfaces
.implements Lio/reactivex/v;
.implements Lio/reactivex/disposables/b;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/single/f;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lio/reactivex/disposables/b;",
">;",
"Lio/reactivex/v<",
"TT;>;",
"Lio/reactivex/disposables/b;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = -0x49c1089e3ffdd225L
# instance fields
.field public final a:Lio/reactivex/v;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/v<",
"-TT;>;"
}
.end annotation
.end field
.field public final b:Lio/reactivex/functions/n;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/n<",
"-",
"Ljava/lang/Throwable;",
"+",
"Lio/reactivex/w<",
"+TT;>;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lio/reactivex/v;Lio/reactivex/functions/n;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/v<",
"-TT;>;",
"Lio/reactivex/functions/n<",
"-",
"Ljava/lang/Throwable;",
"+",
"Lio/reactivex/w<",
"+TT;>;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/util/concurrent/atomic/AtomicReference;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/internal/operators/single/f$a;->a:Lio/reactivex/v;
.line 3
iput-object p2, p0, Lio/reactivex/internal/operators/single/f$a;->b:Lio/reactivex/functions/n;
return-void
.end method
# virtual methods
.method public final dispose()V
.registers 1
invoke-static {p0}, Lio/reactivex/internal/disposables/c;->dispose(Ljava/util/concurrent/atomic/AtomicReference;)Z
return-void
.end method
.method public final isDisposed()Z
.registers 2
invoke-virtual {p0}, Ljava/util/concurrent/atomic/AtomicReference;->get()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lio/reactivex/disposables/b;
invoke-static {v0}, Lio/reactivex/internal/disposables/c;->isDisposed(Lio/reactivex/disposables/b;)Z
move-result v0
return v0
.end method
.method public final onError(Ljava/lang/Throwable;)V
.registers 7
.line 1
:try_start_0
iget-object v0, p0, Lio/reactivex/internal/operators/single/f$a;->b:Lio/reactivex/functions/n;
invoke-interface {v0, p1}, Lio/reactivex/functions/n;->apply(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
const-string v1, "The nextFunction returned a null SingleSource."
.line 2
invoke-static {v0, v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
.line 3
check-cast v0, Lio/reactivex/w;
:try_end_d
.catchall {:try_start_0 .. :try_end_d} :catchall_18
.line 4
new-instance p1, Lio/reactivex/internal/observers/u;
iget-object v1, p0, Lio/reactivex/internal/operators/single/f$a;->a:Lio/reactivex/v;
invoke-direct {p1, p0, v1}, Lio/reactivex/internal/observers/u;-><init>(Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/v;)V
invoke-interface {v0, p1}, Lio/reactivex/w;->a(Lio/reactivex/v;)V
return-void
:catchall_18
move-exception v0
.line 5
invoke-static {v0}, Lcom/shopee/app/dre/codepush/task/a;->m(Ljava/lang/Throwable;)V
.line 6
iget-object v1, p0, Lio/reactivex/internal/operators/single/f$a;->a:Lio/reactivex/v;
new-instance v2, Lio/reactivex/exceptions/a;
const/4 v3, 0x2
new-array v3, v3, [Ljava/lang/Throwable;
const/4 v4, 0x0
aput-object p1, v3, v4
const/4 p1, 0x1
aput-object v0, v3, p1
invoke-direct {v2, v3}, Lio/reactivex/exceptions/a;-><init>([Ljava/lang/Throwable;)V
invoke-interface {v1, v2}, Lio/reactivex/v;->onError(Ljava/lang/Throwable;)V
return-void
.end method
.method public final onSubscribe(Lio/reactivex/disposables/b;)V
.registers 2
.line 1
invoke-static {p0, p1}, Lio/reactivex/internal/disposables/c;->setOnce(Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/disposables/b;)Z
move-result p1
if-eqz p1, :cond_b
.line 2
iget-object p1, p0, Lio/reactivex/internal/operators/single/f$a;->a:Lio/reactivex/v;
invoke-interface {p1, p0}, Lio/reactivex/v;->onSubscribe(Lio/reactivex/disposables/b;)V
:cond_b
return-void
.end method
.method public final onSuccess(Ljava/lang/Object;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
iget-object v0, p0, Lio/reactivex/internal/operators/single/f$a;->a:Lio/reactivex/v;
invoke-interface {v0, p1}, Lio/reactivex/v;->onSuccess(Ljava/lang/Object;)V
return-void
.end method