ObservableZip.smali
.class public final Lio/reactivex/internal/operators/observable/ObservableZip;
.super Lio/reactivex/p;
.source "ObservableZip.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lio/reactivex/internal/operators/observable/ObservableZip$a;,
Lio/reactivex/internal/operators/observable/ObservableZip$ZipCoordinator;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/p<",
"TR;>;"
}
.end annotation
# instance fields
.field final a:[Lio/reactivex/u;
.annotation system Ldalvik/annotation/Signature;
value = {
"[",
"Lio/reactivex/u<",
"+TT;>;"
}
.end annotation
.end field
.field final b:Ljava/lang/Iterable;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Iterable<",
"+",
"Lio/reactivex/u<",
"+TT;>;>;"
}
.end annotation
.end field
.field final c:Lio/reactivex/b/o;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/b/o<",
"-[",
"Ljava/lang/Object;",
"+TR;>;"
}
.end annotation
.end field
.field final d:I
.field final e:Z
# direct methods
.method public constructor <init>([Lio/reactivex/u;Ljava/lang/Iterable;Lio/reactivex/b/o;IZ)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"([",
"Lio/reactivex/u<",
"+TT;>;",
"Ljava/lang/Iterable<",
"+",
"Lio/reactivex/u<",
"+TT;>;>;",
"Lio/reactivex/b/o<",
"-[",
"Ljava/lang/Object;",
"+TR;>;IZ)V"
}
.end annotation
.line 1
invoke-direct {p0}, Lio/reactivex/p;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/internal/operators/observable/ObservableZip;->a:[Lio/reactivex/u;
.line 3
iput-object p2, p0, Lio/reactivex/internal/operators/observable/ObservableZip;->b:Ljava/lang/Iterable;
.line 4
iput-object p3, p0, Lio/reactivex/internal/operators/observable/ObservableZip;->c:Lio/reactivex/b/o;
.line 5
iput p4, p0, Lio/reactivex/internal/operators/observable/ObservableZip;->d:I
.line 6
iput-boolean p5, p0, Lio/reactivex/internal/operators/observable/ObservableZip;->e:Z
return-void
.end method
# virtual methods
.method public subscribeActual(Lio/reactivex/w;)V
.registers 8
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/w<",
"-TR;>;)V"
}
.end annotation
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/observable/ObservableZip;->a:[Lio/reactivex/u;
if-nez v0, :cond_2e
const/16 v0, 0x8
.line 2
new-array v0, v0, [Lio/reactivex/p;
.line 3
iget-object v1, p0, Lio/reactivex/internal/operators/observable/ObservableZip;->b:Ljava/lang/Iterable;
invoke-interface {v1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v1
const/4 v2, 0x0
const/4 v3, 0x0
:goto_10
invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z
move-result v4
if-eqz v4, :cond_2f
invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
check-cast v4, Lio/reactivex/u;
.line 4
array-length v5, v0
if-ne v3, v5, :cond_28
shr-int/lit8 v5, v3, 0x2
add-int/2addr v5, v3
.line 5
new-array v5, v5, [Lio/reactivex/u;
.line 6
invoke-static {v0, v2, v5, v2, v3}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V
move-object v0, v5
:cond_28
add-int/lit8 v5, v3, 0x1
.line 7
aput-object v4, v0, v3
move v3, v5
goto :goto_10
.line 8
:cond_2e
array-length v3, v0
:cond_2f
if-nez v3, :cond_35
.line 9
invoke-static {p1}, Lio/reactivex/internal/disposables/EmptyDisposable;->complete(Lio/reactivex/w;)V
return-void
.line 10
:cond_35
new-instance v1, Lio/reactivex/internal/operators/observable/ObservableZip$ZipCoordinator;
iget-object v2, p0, Lio/reactivex/internal/operators/observable/ObservableZip;->c:Lio/reactivex/b/o;
iget-boolean v4, p0, Lio/reactivex/internal/operators/observable/ObservableZip;->e:Z
invoke-direct {v1, p1, v2, v3, v4}, Lio/reactivex/internal/operators/observable/ObservableZip$ZipCoordinator;-><init>(Lio/reactivex/w;Lio/reactivex/b/o;IZ)V
.line 11
iget p1, p0, Lio/reactivex/internal/operators/observable/ObservableZip;->d:I
invoke-virtual {v1, v0, p1}, Lio/reactivex/internal/operators/observable/ObservableZip$ZipCoordinator;->subscribe([Lio/reactivex/u;I)V
return-void
.end method