OperatorZipIterable.smali
.class public final Lrx/internal/operators/OperatorZipIterable;
.super Ljava/lang/Object;
.source "OperatorZipIterable.java"
# interfaces
.implements Lrx/Observable$Operator;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T1:",
"Ljava/lang/Object;",
"T2:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrx/Observable$Operator<",
"TR;TT1;>;"
}
.end annotation
# instance fields
.field final iterable:Ljava/lang/Iterable;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Iterable<",
"+TT2;>;"
}
.end annotation
.end field
.field final zipFunction:Lrx/functions/Func2;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lrx/functions/Func2<",
"-TT1;-TT2;+TR;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Ljava/lang/Iterable;Lrx/functions/Func2;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/Iterable<",
"+TT2;>;",
"Lrx/functions/Func2<",
"-TT1;-TT2;+TR;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 2
iput-object p1, p0, Lrx/internal/operators/OperatorZipIterable;->iterable:Ljava/lang/Iterable;
.line 3
iput-object p2, p0, Lrx/internal/operators/OperatorZipIterable;->zipFunction:Lrx/functions/Func2;
return-void
.end method
# virtual methods
.method public bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
.registers 2
.line 1
check-cast p1, Lrx/Subscriber;
invoke-virtual {p0, p1}, Lrx/internal/operators/OperatorZipIterable;->call(Lrx/Subscriber;)Lrx/Subscriber;
move-result-object p1
return-object p1
.end method
.method public call(Lrx/Subscriber;)Lrx/Subscriber;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lrx/Subscriber<",
"-TR;>;)",
"Lrx/Subscriber<",
"-TT1;>;"
}
.end annotation
.line 2
iget-object v0, p0, Lrx/internal/operators/OperatorZipIterable;->iterable:Ljava/lang/Iterable;
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v0
.line 3
:try_start_6
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-nez v1, :cond_14
.line 4
invoke-interface {p1}, Lrx/Observer;->onCompleted()V
.line 5
invoke-static {}, Lrx/observers/Subscribers;->empty()Lrx/Subscriber;
move-result-object p1
:try_end_13
.catch Ljava/lang/Throwable; {:try_start_6 .. :try_end_13} :catch_1a
return-object p1
.line 6
:cond_14
new-instance v1, Lrx/internal/operators/OperatorZipIterable$1;
invoke-direct {v1, p0, p1, p1, v0}, Lrx/internal/operators/OperatorZipIterable$1;-><init>(Lrx/internal/operators/OperatorZipIterable;Lrx/Subscriber;Lrx/Subscriber;Ljava/util/Iterator;)V
return-object v1
:catch_1a
move-exception v0
.line 7
invoke-static {v0, p1}, Lrx/exceptions/Exceptions;->throwOrReport(Ljava/lang/Throwable;Lrx/Observer;)V
.line 8
invoke-static {}, Lrx/observers/Subscribers;->empty()Lrx/Subscriber;
move-result-object p1
return-object p1
.end method