o$1.smali
.class final Lrx/internal/operators/o$1;
.super Lrx/o;
.source "OnSubscribeSingle.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lrx/internal/operators/o;
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/o",
"<TT;>;"
}
.end annotation
# instance fields
.field private caI:Z
.field private caJ:Z
.field private caK:Ljava/lang/Object;
.annotation system Ldalvik/annotation/Signature;
value = {
"TT;"
}
.end annotation
.end field
.field private synthetic cac:Lrx/n;
# direct methods
.method constructor <init>(Lrx/n;)V
.registers 2
.prologue
.line 37
iput-object p1, p0, Lrx/internal/operators/o$1;->cac:Lrx/n;
invoke-direct {p0}, Lrx/o;-><init>()V
return-void
.end method
# virtual methods
.method public final SG()V
.registers 4
.prologue
.line 51
iget-boolean v0, p0, Lrx/internal/operators/o$1;->caI:Z
if-nez v0, :cond_f
.line 54
iget-boolean v0, p0, Lrx/internal/operators/o$1;->caJ:Z
if-eqz v0, :cond_10
.line 55
iget-object v0, p0, Lrx/internal/operators/o$1;->cac:Lrx/n;
iget-object v1, p0, Lrx/internal/operators/o$1;->caK:Ljava/lang/Object;
invoke-virtual {v0, v1}, Lrx/n;->onSuccess(Ljava/lang/Object;)V
.line 60
:cond_f
:goto_f
return-void
.line 57
:cond_10
iget-object v0, p0, Lrx/internal/operators/o$1;->cac:Lrx/n;
new-instance v1, Ljava/util/NoSuchElementException;
const-string v2, "Observable emitted no items"
invoke-direct {v1, v2}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, v1}, Lrx/n;->onError(Ljava/lang/Throwable;)V
goto :goto_f
.end method
.method public final onError(Ljava/lang/Throwable;)V
.registers 3
.prologue
.line 64
iget-object v0, p0, Lrx/internal/operators/o$1;->cac:Lrx/n;
invoke-virtual {v0, p1}, Lrx/n;->onError(Ljava/lang/Throwable;)V
.line 65
invoke-virtual {p0}, Lrx/internal/operators/o$1;->unsubscribe()V
.line 66
return-void
.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 70
iget-boolean v0, p0, Lrx/internal/operators/o$1;->caJ:Z
if-eqz v0, :cond_17
.line 71
iput-boolean v1, p0, Lrx/internal/operators/o$1;->caI:Z
.line 72
iget-object v0, p0, Lrx/internal/operators/o$1;->cac:Lrx/n;
new-instance v1, Ljava/lang/IllegalArgumentException;
const-string v2, "Observable emitted too many elements"
invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
invoke-virtual {v0, v1}, Lrx/n;->onError(Ljava/lang/Throwable;)V
.line 73
invoke-virtual {p0}, Lrx/internal/operators/o$1;->unsubscribe()V
.line 78
:goto_16
return-void
.line 75
:cond_17
iput-boolean v1, p0, Lrx/internal/operators/o$1;->caJ:Z
.line 76
iput-object p1, p0, Lrx/internal/operators/o$1;->caK:Ljava/lang/Object;
goto :goto_16
.end method
.method public final onStart()V
.registers 3
.prologue
.line 46
const-wide/16 v0, 0x2
invoke-virtual {p0, v0, v1}, Lrx/internal/operators/o$1;->request(J)V
.line 47
return-void
.end method