tmap/smali_classes5/io/reactivex/internal/operators/maybe/MaybeFlatMapCompletable$FlatMapCompletableObserver.smali
2022-06-10 21:38:30 +09:00

191 lines
4.8 KiB
Smali

.class final Lio/reactivex/internal/operators/maybe/MaybeFlatMapCompletable$FlatMapCompletableObserver;
.super Ljava/util/concurrent/atomic/AtomicReference;
.source "MaybeFlatMapCompletable.java"
# interfaces
.implements Lkh/t;
.implements Lkh/d;
.implements Lio/reactivex/disposables/b;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/maybe/MaybeFlatMapCompletable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "FlatMapCompletableObserver"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Ljava/util/concurrent/atomic/AtomicReference<",
"Lio/reactivex/disposables/b;",
">;",
"Lkh/t<",
"TT;>;",
"Lkh/d;",
"Lio/reactivex/disposables/b;"
}
.end annotation
# static fields
.field private static final serialVersionUID:J = -0x1e36b7386cc4ca45L
# instance fields
.field public final downstream:Lkh/d;
.field public final mapper:Lph/o;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lph/o<",
"-TT;+",
"Lkh/g;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lkh/d;Lph/o;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkh/d;",
"Lph/o<",
"-TT;+",
"Lkh/g;",
">;)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/maybe/MaybeFlatMapCompletable$FlatMapCompletableObserver;->downstream:Lkh/d;
.line 3
iput-object p2, p0, Lio/reactivex/internal/operators/maybe/MaybeFlatMapCompletable$FlatMapCompletableObserver;->mapper:Lph/o;
return-void
.end method
# virtual methods
.method public dispose()V
.locals 0
.line 1
invoke-static {p0}, Lio/reactivex/internal/disposables/DisposableHelper;->dispose(Ljava/util/concurrent/atomic/AtomicReference;)Z
return-void
.end method
.method public isDisposed()Z
.locals 1
.line 1
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/DisposableHelper;->isDisposed(Lio/reactivex/disposables/b;)Z
move-result v0
return v0
.end method
.method public onComplete()V
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/maybe/MaybeFlatMapCompletable$FlatMapCompletableObserver;->downstream:Lkh/d;
invoke-interface {v0}, Lkh/d;->onComplete()V
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/maybe/MaybeFlatMapCompletable$FlatMapCompletableObserver;->downstream:Lkh/d;
invoke-interface {v0, p1}, Lkh/d;->onError(Ljava/lang/Throwable;)V
return-void
.end method
.method public onSubscribe(Lio/reactivex/disposables/b;)V
.locals 0
.line 1
invoke-static {p0, p1}, Lio/reactivex/internal/disposables/DisposableHelper;->replace(Ljava/util/concurrent/atomic/AtomicReference;Lio/reactivex/disposables/b;)Z
return-void
.end method
.method public onSuccess(Ljava/lang/Object;)V
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
:try_start_0
iget-object v0, p0, Lio/reactivex/internal/operators/maybe/MaybeFlatMapCompletable$FlatMapCompletableObserver;->mapper:Lph/o;
invoke-interface {v0, p1}, Lph/o;->apply(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
const-string v0, "The mapper returned a null CompletableSource"
invoke-static {p1, v0}, Lio/reactivex/internal/functions/a;->g(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Lkh/g;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 2
invoke-virtual {p0}, Lio/reactivex/internal/operators/maybe/MaybeFlatMapCompletable$FlatMapCompletableObserver;->isDisposed()Z
move-result v0
if-nez v0, :cond_0
.line 3
invoke-interface {p1, p0}, Lkh/g;->d(Lkh/d;)V
:cond_0
return-void
:catchall_0
move-exception p1
.line 4
invoke-static {p1}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 5
invoke-virtual {p0, p1}, Lio/reactivex/internal/operators/maybe/MaybeFlatMapCompletable$FlatMapCompletableObserver;->onError(Ljava/lang/Throwable;)V
return-void
.end method