MaybeZipArray.smali
.class public final Lio/reactivex/internal/operators/maybe/MaybeZipArray;
.super Lio/reactivex/Maybe;
.source "MaybeZipArray.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lio/reactivex/internal/operators/maybe/MaybeZipArray$SingletonArrayFunc;,
Lio/reactivex/internal/operators/maybe/MaybeZipArray$ZipMaybeObserver;,
Lio/reactivex/internal/operators/maybe/MaybeZipArray$ZipCoordinator;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/Maybe<",
"TR;>;"
}
.end annotation
# instance fields
.field final sources:[Lio/reactivex/MaybeSource;
.annotation system Ldalvik/annotation/Signature;
value = {
"[",
"Lio/reactivex/MaybeSource<",
"+TT;>;"
}
.end annotation
.end field
.field final zipper:Lio/reactivex/functions/Function;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/Function<",
"-[",
"Ljava/lang/Object;",
"+TR;>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>([Lio/reactivex/MaybeSource;Lio/reactivex/functions/Function;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"([",
"Lio/reactivex/MaybeSource<",
"+TT;>;",
"Lio/reactivex/functions/Function<",
"-[",
"Ljava/lang/Object;",
"+TR;>;)V"
}
.end annotation
.line 32
.local p0, "this":Lio/reactivex/internal/operators/maybe/MaybeZipArray;, "Lio/reactivex/internal/operators/maybe/MaybeZipArray<TT;TR;>;"
.local p1, "sources":[Lio/reactivex/MaybeSource;, "[Lio/reactivex/MaybeSource<+TT;>;"
.local p2, "zipper":Lio/reactivex/functions/Function;, "Lio/reactivex/functions/Function<-[Ljava/lang/Object;+TR;>;"
invoke-direct {p0}, Lio/reactivex/Maybe;-><init>()V
.line 33
iput-object p1, p0, Lio/reactivex/internal/operators/maybe/MaybeZipArray;->sources:[Lio/reactivex/MaybeSource;
.line 34
iput-object p2, p0, Lio/reactivex/internal/operators/maybe/MaybeZipArray;->zipper:Lio/reactivex/functions/Function;
.line 35
return-void
.end method
# virtual methods
.method protected subscribeActual(Lio/reactivex/MaybeObserver;)V
.registers 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/MaybeObserver<",
"-TR;>;)V"
}
.end annotation
.line 39
.local p0, "this":Lio/reactivex/internal/operators/maybe/MaybeZipArray;, "Lio/reactivex/internal/operators/maybe/MaybeZipArray<TT;TR;>;"
.local p1, "observer":Lio/reactivex/MaybeObserver;, "Lio/reactivex/MaybeObserver<-TR;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/maybe/MaybeZipArray;->sources:[Lio/reactivex/MaybeSource;
.line 40
.local v0, "sources":[Lio/reactivex/MaybeSource;, "[Lio/reactivex/MaybeSource<+TT;>;"
array-length v1, v0
.line 43
.local v1, "n":I
const/4 v2, 0x1
if-ne v1, v2, :cond_17
.line 44
const/4 v2, 0x0
aget-object v2, v0, v2
new-instance v3, Lio/reactivex/internal/operators/maybe/MaybeMap$MapMaybeObserver;
new-instance v4, Lio/reactivex/internal/operators/maybe/MaybeZipArray$SingletonArrayFunc;
invoke-direct {v4, p0}, Lio/reactivex/internal/operators/maybe/MaybeZipArray$SingletonArrayFunc;-><init>(Lio/reactivex/internal/operators/maybe/MaybeZipArray;)V
invoke-direct {v3, p1, v4}, Lio/reactivex/internal/operators/maybe/MaybeMap$MapMaybeObserver;-><init>(Lio/reactivex/MaybeObserver;Lio/reactivex/functions/Function;)V
invoke-interface {v2, v3}, Lio/reactivex/MaybeSource;->subscribe(Lio/reactivex/MaybeObserver;)V
.line 45
return-void
.line 48
:cond_17
new-instance v2, Lio/reactivex/internal/operators/maybe/MaybeZipArray$ZipCoordinator;
iget-object v3, p0, Lio/reactivex/internal/operators/maybe/MaybeZipArray;->zipper:Lio/reactivex/functions/Function;
invoke-direct {v2, p1, v1, v3}, Lio/reactivex/internal/operators/maybe/MaybeZipArray$ZipCoordinator;-><init>(Lio/reactivex/MaybeObserver;ILio/reactivex/functions/Function;)V
.line 50
.local v2, "parent":Lio/reactivex/internal/operators/maybe/MaybeZipArray$ZipCoordinator;, "Lio/reactivex/internal/operators/maybe/MaybeZipArray$ZipCoordinator<TT;TR;>;"
invoke-interface {p1, v2}, Lio/reactivex/MaybeObserver;->onSubscribe(Lio/reactivex/disposables/Disposable;)V
.line 52
const/4 v3, 0x0
.local v3, "i":I
:goto_22
if-ge v3, v1, :cond_44
.line 53
invoke-virtual {v2}, Lio/reactivex/internal/operators/maybe/MaybeZipArray$ZipCoordinator;->isDisposed()Z
move-result v4
if-eqz v4, :cond_2b
.line 54
return-void
.line 57
:cond_2b
aget-object v4, v0, v3
.line 59
.local v4, "source":Lio/reactivex/MaybeSource;, "Lio/reactivex/MaybeSource<+TT;>;"
if-nez v4, :cond_3a
.line 60
new-instance v5, Ljava/lang/NullPointerException;
const-string v6, "One of the sources is null"
invoke-direct {v5, v6}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
invoke-virtual {v2, v5, v3}, Lio/reactivex/internal/operators/maybe/MaybeZipArray$ZipCoordinator;->innerError(Ljava/lang/Throwable;I)V
.line 61
return-void
.line 63
:cond_3a
iget-object v5, v2, Lio/reactivex/internal/operators/maybe/MaybeZipArray$ZipCoordinator;->observers:[Lio/reactivex/internal/operators/maybe/MaybeZipArray$ZipMaybeObserver;
aget-object v5, v5, v3
invoke-interface {v4, v5}, Lio/reactivex/MaybeSource;->subscribe(Lio/reactivex/MaybeObserver;)V
.line 52
.end local v4 # "source":Lio/reactivex/MaybeSource;, "Lio/reactivex/MaybeSource<+TT;>;"
add-int/lit8 v3, v3, 0x1
goto :goto_22
.line 65
.end local v3 # "i":I
:cond_44
return-void
.end method