FlowableFromIterable.smali
.class public final Lio/reactivex/internal/operators/flowable/FlowableFromIterable;
.super Lio/reactivex/e;
.source "FlowableFromIterable.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lio/reactivex/internal/operators/flowable/FlowableFromIterable$IteratorConditionalSubscription;,
Lio/reactivex/internal/operators/flowable/FlowableFromIterable$IteratorSubscription;,
Lio/reactivex/internal/operators/flowable/FlowableFromIterable$BaseRangeSubscription;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/e<",
"TT;>;"
}
.end annotation
# instance fields
.field final b: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
.line 1
invoke-direct {p0}, Lio/reactivex/e;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableFromIterable;->b:Ljava/lang/Iterable;
return-void
.end method
.method public static a(Lf/b/c;Ljava/util/Iterator;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
">(",
"Lf/b/c<",
"-TT;>;",
"Ljava/util/Iterator<",
"+TT;>;)V"
}
.end annotation
.line 1
:try_start_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v0
:try_end_4
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_4} :catch_23
if-nez v0, :cond_a
.line 2
invoke-static {p0}, Lio/reactivex/internal/subscriptions/EmptySubscription;->complete(Lf/b/c;)V
return-void
.line 3
:cond_a
instance-of v0, p0, Lio/reactivex/c/a/a;
if-eqz v0, :cond_1a
.line 4
new-instance v0, Lio/reactivex/internal/operators/flowable/FlowableFromIterable$IteratorConditionalSubscription;
move-object v1, p0
check-cast v1, Lio/reactivex/c/a/a;
invoke-direct {v0, v1, p1}, Lio/reactivex/internal/operators/flowable/FlowableFromIterable$IteratorConditionalSubscription;-><init>(Lio/reactivex/c/a/a;Ljava/util/Iterator;)V
invoke-interface {p0, v0}, Lf/b/c;->onSubscribe(Lf/b/d;)V
goto :goto_22
.line 5
:cond_1a
new-instance v0, Lio/reactivex/internal/operators/flowable/FlowableFromIterable$IteratorSubscription;
invoke-direct {v0, p0, p1}, Lio/reactivex/internal/operators/flowable/FlowableFromIterable$IteratorSubscription;-><init>(Lf/b/c;Ljava/util/Iterator;)V
invoke-interface {p0, v0}, Lf/b/c;->onSubscribe(Lf/b/d;)V
:goto_22
return-void
:catch_23
move-exception p1
.line 6
invoke-static {p1}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 7
invoke-static {p1, p0}, Lio/reactivex/internal/subscriptions/EmptySubscription;->error(Ljava/lang/Throwable;Lf/b/c;)V
return-void
.end method
# virtual methods
.method public b(Lf/b/c;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lf/b/c<",
"-TT;>;)V"
}
.end annotation
.line 1
:try_start_0
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableFromIterable;->b:Ljava/lang/Iterable;
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v0
:try_end_6
.catch Ljava/lang/Throwable; {:try_start_0 .. :try_end_6} :catch_a
.line 2
invoke-static {p1, v0}, Lio/reactivex/internal/operators/flowable/FlowableFromIterable;->a(Lf/b/c;Ljava/util/Iterator;)V
return-void
:catch_a
move-exception v0
.line 3
invoke-static {v0}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 4
invoke-static {v0, p1}, Lio/reactivex/internal/subscriptions/EmptySubscription;->error(Ljava/lang/Throwable;Lf/b/c;)V
return-void
.end method