ac.smali
.class final Lrx/internal/operators/ac;
.super Lrx/o;
.source "SingleFromObservable.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lrx/o",
"<TT;>;"
}
.end annotation
# instance fields
.field private cbq:Lrx/n;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/n",
"<-TT;>;"
}
.end annotation
.end field
.field private state:I
.field private value:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
# direct methods
.method constructor <init>(Lrx/n;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/n",
"<-TT;>;)V"
}
.end annotation
.prologue
.line 55
invoke-direct {p0}, Lrx/o;-><init>()V
.line 56
iput-object p1, p0, Lrx/internal/operators/ac;->cbq:Lrx/n;
.line 57
return-void
.end method
# virtual methods
.method public final SG()V
.registers 3
.prologue
.line 83
iget v0, p0, Lrx/internal/operators/ac;->state:I
.line 84
if-nez v0, :cond_f
.line 85
iget-object v0, p0, Lrx/internal/operators/ac;->cbq:Lrx/n;
new-instance v1, Ljava/util/NoSuchElementException;
invoke-direct {v1}, Ljava/util/NoSuchElementException;-><init>()V
invoke-virtual {v0, v1}, Lrx/n;->onError(Ljava/lang/Throwable;)V
.line 92
:cond_e
:goto_e
return-void
.line 86
:cond_f
const/4 v1, 0x1
if-ne v0, v1, :cond_e
.line 87
const/4 v0, 0x2
iput v0, p0, Lrx/internal/operators/ac;->state:I
.line 88
iget-object v0, p0, Lrx/internal/operators/ac;->value:Ljava/lang/Object;
.line 89
const/4 v1, 0x0
iput-object v1, p0, Lrx/internal/operators/ac;->value:Ljava/lang/Object;
.line 90
iget-object v1, p0, Lrx/internal/operators/ac;->cbq:Lrx/n;
invoke-virtual {v1, v0}, Lrx/n;->onSuccess(Ljava/lang/Object;)V
goto :goto_e
.end method
.method public final onError(Ljava/lang/Throwable;)V
.registers 4
.prologue
.line 73
iget v0, p0, Lrx/internal/operators/ac;->state:I
const/4 v1, 0x2
if-ne v0, v1, :cond_9
.line 74
invoke-static {p1}, Lrx/d/c;->onError(Ljava/lang/Throwable;)V
.line 79
:goto_8
return-void
.line 76
:cond_9
const/4 v0, 0x0
iput-object v0, p0, Lrx/internal/operators/ac;->value:Ljava/lang/Object;
.line 77
iget-object v0, p0, Lrx/internal/operators/ac;->cbq:Lrx/n;
invoke-virtual {v0, p1}, Lrx/n;->onError(Ljava/lang/Throwable;)V
goto :goto_8
.end method
.method public final onNext(Ljava/lang/Object;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.prologue
const/4 v1, 0x1
.line 61
iget v0, p0, Lrx/internal/operators/ac;->state:I
.line 62
if-nez v0, :cond_a
.line 63
iput v1, p0, Lrx/internal/operators/ac;->state:I
.line 64
iput-object p1, p0, Lrx/internal/operators/ac;->value:Ljava/lang/Object;
.line 69
:cond_9
:goto_9
return-void
.line 65
:cond_a
if-ne v0, v1, :cond_9
.line 66
const/4 v0, 0x2
iput v0, p0, Lrx/internal/operators/ac;->state:I
.line 67
iget-object v0, p0, Lrx/internal/operators/ac;->cbq:Lrx/n;
new-instance v1, Ljava/lang/IndexOutOfBoundsException;
const-string v2, "The upstream produced more than one value"
invoke-direct {v1, v2}, Ljava/lang/IndexOutOfBoundsException;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, v1}, Lrx/n;->onError(Ljava/lang/Throwable;)V
goto :goto_9
.end method