O$a.smali
.class final Lio/reactivex/internal/operators/observable/O$a;
.super Ljava/lang/Object;
.source "ObservableGenerate.java"
# interfaces
.implements Lio/reactivex/d;
.implements Lio/reactivex/disposables/b;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/observable/O;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "a"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"S:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lio/reactivex/d<",
"TT;>;",
"Lio/reactivex/disposables/b;"
}
.end annotation
# instance fields
.field final a:Lio/reactivex/w;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/w<",
"-TT;>;"
}
.end annotation
.end field
.field final b:Lio/reactivex/b/c;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/b/c<",
"TS;-",
"Lio/reactivex/d<",
"TT;>;TS;>;"
}
.end annotation
.end field
.field final c:Lio/reactivex/b/g;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/b/g<",
"-TS;>;"
}
.end annotation
.end field
.field d:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TS;"
}
.end annotation
.end field
.field volatile e:Z
.field f:Z
.field g:Z
# direct methods
.method constructor <init>(Lio/reactivex/w;Lio/reactivex/b/c;Lio/reactivex/b/g;Ljava/lang/Object;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/w<",
"-TT;>;",
"Lio/reactivex/b/c<",
"TS;-",
"Lio/reactivex/d<",
"TT;>;TS;>;",
"Lio/reactivex/b/g<",
"-TS;>;TS;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/internal/operators/observable/O$a;->a:Lio/reactivex/w;
.line 3
iput-object p2, p0, Lio/reactivex/internal/operators/observable/O$a;->b:Lio/reactivex/b/c;
.line 4
iput-object p3, p0, Lio/reactivex/internal/operators/observable/O$a;->c:Lio/reactivex/b/g;
.line 5
iput-object p4, p0, Lio/reactivex/internal/operators/observable/O$a;->d:Ljava/lang/Object;
return-void
.end method
.method private a(Ljava/lang/Object;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TS;)V"
}
.end annotation
.line 20
:try_start_0
iget-object v0, p0, Lio/reactivex/internal/operators/observable/O$a;->c:Lio/reactivex/b/g;
invoke-interface {v0, p1}, Lio/reactivex/b/g;->accept(Ljava/lang/Object;)V
:try_end_5
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_5} :catch_6
goto :goto_d
:catch_6
move-exception p1
.line 21
invoke-static {p1}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 22
invoke-static {p1}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V
:goto_d
return-void
.end method
# virtual methods
.method public a()V
.registers 6
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/observable/O$a;->d:Ljava/lang/Object;
.line 2
iget-boolean v1, p0, Lio/reactivex/internal/operators/observable/O$a;->e:Z
const/4 v2, 0x0
if-eqz v1, :cond_d
.line 3
iput-object v2, p0, Lio/reactivex/internal/operators/observable/O$a;->d:Ljava/lang/Object;
.line 4
invoke-direct {p0, v0}, Lio/reactivex/internal/operators/observable/O$a;->a(Ljava/lang/Object;)V
return-void
.line 5
:cond_d
iget-object v1, p0, Lio/reactivex/internal/operators/observable/O$a;->b:Lio/reactivex/b/c;
.line 6
:cond_f
iget-boolean v3, p0, Lio/reactivex/internal/operators/observable/O$a;->e:Z
if-eqz v3, :cond_19
.line 7
iput-object v2, p0, Lio/reactivex/internal/operators/observable/O$a;->d:Ljava/lang/Object;
.line 8
invoke-direct {p0, v0}, Lio/reactivex/internal/operators/observable/O$a;->a(Ljava/lang/Object;)V
return-void
:cond_19
const/4 v3, 0x0
.line 9
iput-boolean v3, p0, Lio/reactivex/internal/operators/observable/O$a;->g:Z
const/4 v3, 0x1
.line 10
:try_start_1d
invoke-interface {v1, v0, p0}, Lio/reactivex/b/c;->apply(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
:try_end_21
.catch Ljava/lang/Throwable; {:try_start_1d .. :try_end_21} :catch_2d
.line 11
iget-boolean v4, p0, Lio/reactivex/internal/operators/observable/O$a;->f:Z
if-eqz v4, :cond_f
.line 12
iput-boolean v3, p0, Lio/reactivex/internal/operators/observable/O$a;->e:Z
.line 13
iput-object v2, p0, Lio/reactivex/internal/operators/observable/O$a;->d:Ljava/lang/Object;
.line 14
invoke-direct {p0, v0}, Lio/reactivex/internal/operators/observable/O$a;->a(Ljava/lang/Object;)V
return-void
:catch_2d
move-exception v1
.line 15
invoke-static {v1}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 16
iput-object v2, p0, Lio/reactivex/internal/operators/observable/O$a;->d:Ljava/lang/Object;
.line 17
iput-boolean v3, p0, Lio/reactivex/internal/operators/observable/O$a;->e:Z
.line 18
invoke-virtual {p0, v1}, Lio/reactivex/internal/operators/observable/O$a;->onError(Ljava/lang/Throwable;)V
.line 19
invoke-direct {p0, v0}, Lio/reactivex/internal/operators/observable/O$a;->a(Ljava/lang/Object;)V
return-void
.end method
.method public dispose()V
.registers 2
const/4 v0, 0x1
.line 1
iput-boolean v0, p0, Lio/reactivex/internal/operators/observable/O$a;->e:Z
return-void
.end method
.method public isDisposed()Z
.registers 2
.line 1
iget-boolean v0, p0, Lio/reactivex/internal/operators/observable/O$a;->e:Z
return v0
.end method
.method public onComplete()V
.registers 2
.line 1
iget-boolean v0, p0, Lio/reactivex/internal/operators/observable/O$a;->f:Z
if-nez v0, :cond_c
const/4 v0, 0x1
.line 2
iput-boolean v0, p0, Lio/reactivex/internal/operators/observable/O$a;->f:Z
.line 3
iget-object v0, p0, Lio/reactivex/internal/operators/observable/O$a;->a:Lio/reactivex/w;
invoke-interface {v0}, Lio/reactivex/w;->onComplete()V
:cond_c
return-void
.end method
.method public onError(Ljava/lang/Throwable;)V
.registers 3
.line 1
iget-boolean v0, p0, Lio/reactivex/internal/operators/observable/O$a;->f:Z
if-eqz v0, :cond_8
.line 2
invoke-static {p1}, Lio/reactivex/e/a;->b(Ljava/lang/Throwable;)V
goto :goto_19
:cond_8
if-nez p1, :cond_11
.line 3
new-instance p1, Ljava/lang/NullPointerException;
const-string v0, "onError called with null. Null values are generally not allowed in 2.x operators and sources."
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
:cond_11
const/4 v0, 0x1
.line 4
iput-boolean v0, p0, Lio/reactivex/internal/operators/observable/O$a;->f:Z
.line 5
iget-object v0, p0, Lio/reactivex/internal/operators/observable/O$a;->a:Lio/reactivex/w;
invoke-interface {v0, p1}, Lio/reactivex/w;->onError(Ljava/lang/Throwable;)V
:goto_19
return-void
.end method
.method public onNext(Ljava/lang/Object;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 1
iget-boolean v0, p0, Lio/reactivex/internal/operators/observable/O$a;->f:Z
if-nez v0, :cond_28
.line 2
iget-boolean v0, p0, Lio/reactivex/internal/operators/observable/O$a;->g:Z
if-eqz v0, :cond_13
.line 3
new-instance p1, Ljava/lang/IllegalStateException;
const-string v0, "onNext already called in this generate turn"
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
invoke-virtual {p0, p1}, Lio/reactivex/internal/operators/observable/O$a;->onError(Ljava/lang/Throwable;)V
goto :goto_28
:cond_13
if-nez p1, :cond_20
.line 4
new-instance p1, Ljava/lang/NullPointerException;
const-string v0, "onNext called with null. Null values are generally not allowed in 2.x operators and sources."
invoke-direct {p1, v0}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
invoke-virtual {p0, p1}, Lio/reactivex/internal/operators/observable/O$a;->onError(Ljava/lang/Throwable;)V
goto :goto_28
:cond_20
const/4 v0, 0x1
.line 5
iput-boolean v0, p0, Lio/reactivex/internal/operators/observable/O$a;->g:Z
.line 6
iget-object v0, p0, Lio/reactivex/internal/operators/observable/O$a;->a:Lio/reactivex/w;
invoke-interface {v0, p1}, Lio/reactivex/w;->onNext(Ljava/lang/Object;)V
:cond_28
:goto_28
return-void
.end method