cf.smali
.class public final Lio/reactivex/internal/operators/observable/cf;
.super Lio/reactivex/k;
.source "ObservableFromIterable.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/k",
"<TT;>;"
}
.end annotation
# instance fields
.field private bQg:Ljava/lang/Iterable;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Iterable",
"<+TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/lang/Iterable;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Iterable",
"<+TT;>;)V"
}
.end annotation
.prologue
.line 27
invoke-direct {p0}, Lio/reactivex/k;-><init>()V
.line 28
iput-object p1, p0, Lio/reactivex/internal/operators/observable/cf;->bQg:Ljava/lang/Iterable;
.line 29
return-void
.end method
# virtual methods
.method public final subscribeActual(Lio/reactivex/r;)V
.registers 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/r",
"<-TT;>;)V"
}
.end annotation
.prologue
.line 35
:try_start_0
iget-object v0, p0, Lio/reactivex/internal/operators/observable/cf;->bQg:Ljava/lang/Iterable;
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
:try_end_5
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_5} :catch_10
move-result-object v0
.line 43
:try_start_6
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
:try_end_9
.catch Ljava/lang/Throwable; {:try_start_6 .. :try_end_9} :catch_18
move-result v1
.line 49
if-nez v1, :cond_20
.line 50
invoke-static {p1}, Lio/reactivex/internal/disposables/EmptyDisposable;->complete(Lio/reactivex/r;)V
.line 1108
:cond_f
:goto_f
return-void
.line 36
:catch_10
move-exception v0
.line 37
invoke-static {v0}, Lio/reactivex/exceptions/d;->throwIfFatal(Ljava/lang/Throwable;)V
.line 38
invoke-static {v0, p1}, Lio/reactivex/internal/disposables/EmptyDisposable;->error(Ljava/lang/Throwable;Lio/reactivex/r;)V
goto :goto_f
.line 44
:catch_18
move-exception v0
.line 45
invoke-static {v0}, Lio/reactivex/exceptions/d;->throwIfFatal(Ljava/lang/Throwable;)V
.line 46
invoke-static {v0, p1}, Lio/reactivex/internal/disposables/EmptyDisposable;->error(Ljava/lang/Throwable;Lio/reactivex/r;)V
goto :goto_f
.line 54
:cond_20
new-instance v1, Lio/reactivex/internal/operators/observable/cg;
invoke-direct {v1, p1, v0}, Lio/reactivex/internal/operators/observable/cg;-><init>(Lio/reactivex/r;Ljava/util/Iterator;)V
.line 55
invoke-interface {p1, v1}, Lio/reactivex/r;->onSubscribe(Lio/reactivex/disposables/b;)V
.line 57
iget-boolean v0, v1, Lio/reactivex/internal/operators/observable/cg;->bQf:Z
if-nez v0, :cond_f
.line 1085
:cond_2c
invoke-virtual {v1}, Lio/reactivex/internal/operators/observable/cg;->isDisposed()Z
move-result v0
if-nez v0, :cond_f
.line 1091
:try_start_32
iget-object v0, v1, Lio/reactivex/internal/operators/observable/cg;->it:Ljava/util/Iterator;
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
const-string v2, "The iterator returned a null value"
invoke-static {v0, v2}, Lio/reactivex/internal/functions/aj;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
:try_end_3d
.catch Ljava/lang/Throwable; {:try_start_32 .. :try_end_3d} :catch_5d
move-result-object v0
.line 1098
iget-object v2, v1, Lio/reactivex/internal/operators/observable/cg;->actual:Lio/reactivex/r;
invoke-interface {v2, v0}, Lio/reactivex/r;->onNext(Ljava/lang/Object;)V
.line 1100
invoke-virtual {v1}, Lio/reactivex/internal/operators/observable/cg;->isDisposed()Z
move-result v0
if-nez v0, :cond_f
.line 1104
:try_start_49
iget-object v0, v1, Lio/reactivex/internal/operators/observable/cg;->it:Ljava/util/Iterator;
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
:try_end_4e
.catch Ljava/lang/Throwable; {:try_start_49 .. :try_end_4e} :catch_67
move-result v0
.line 1110
if-nez v0, :cond_2c
.line 1112
invoke-virtual {v1}, Lio/reactivex/internal/operators/observable/cg;->isDisposed()Z
move-result v0
if-nez v0, :cond_f
.line 1113
iget-object v0, v1, Lio/reactivex/internal/operators/observable/cg;->actual:Lio/reactivex/r;
invoke-interface {v0}, Lio/reactivex/r;->onComplete()V
goto :goto_f
.line 1092
:catch_5d
move-exception v0
.line 1093
invoke-static {v0}, Lio/reactivex/exceptions/d;->throwIfFatal(Ljava/lang/Throwable;)V
.line 1094
iget-object v1, v1, Lio/reactivex/internal/operators/observable/cg;->actual:Lio/reactivex/r;
invoke-interface {v1, v0}, Lio/reactivex/r;->onError(Ljava/lang/Throwable;)V
goto :goto_f
.line 1105
:catch_67
move-exception v0
.line 1106
invoke-static {v0}, Lio/reactivex/exceptions/d;->throwIfFatal(Ljava/lang/Throwable;)V
.line 1107
iget-object v1, v1, Lio/reactivex/internal/operators/observable/cg;->actual:Lio/reactivex/r;
invoke-interface {v1, v0}, Lio/reactivex/r;->onError(Ljava/lang/Throwable;)V
goto :goto_f
.end method