2022-06-10 21:38:30 +09:00

214 lines
4.7 KiB
Smali

.class public final Lio/reactivex/internal/operators/parallel/ParallelCollect;
.super Lvh/a;
.source "ParallelCollect.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lio/reactivex/internal/operators/parallel/ParallelCollect$ParallelCollectSubscriber;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"C:",
"Ljava/lang/Object;",
">",
"Lvh/a<",
"TC;>;"
}
.end annotation
# instance fields
.field public final a:Lvh/a;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lvh/a<",
"+TT;>;"
}
.end annotation
.end field
.field public final b:Ljava/util/concurrent/Callable;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/Callable<",
"+TC;>;"
}
.end annotation
.end field
.field public final c:Lph/b;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lph/b<",
"-TC;-TT;>;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Lvh/a;Ljava/util/concurrent/Callable;Lph/b;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lvh/a<",
"+TT;>;",
"Ljava/util/concurrent/Callable<",
"+TC;>;",
"Lph/b<",
"-TC;-TT;>;)V"
}
.end annotation
.line 1
invoke-direct {p0}, Lvh/a;-><init>()V
.line 2
iput-object p1, p0, Lio/reactivex/internal/operators/parallel/ParallelCollect;->a:Lvh/a;
.line 3
iput-object p2, p0, Lio/reactivex/internal/operators/parallel/ParallelCollect;->b:Ljava/util/concurrent/Callable;
.line 4
iput-object p3, p0, Lio/reactivex/internal/operators/parallel/ParallelCollect;->c:Lph/b;
return-void
.end method
# virtual methods
.method public F()I
.locals 1
.line 1
iget-object v0, p0, Lio/reactivex/internal/operators/parallel/ParallelCollect;->a:Lvh/a;
invoke-virtual {v0}, Lvh/a;->F()I
move-result v0
return v0
.end method
.method public Q([Lok/d;)V
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"([",
"Lok/d<",
"-TC;>;)V"
}
.end annotation
.line 1
invoke-virtual {p0, p1}, Lvh/a;->U([Lok/d;)Z
move-result v0
if-nez v0, :cond_0
return-void
.line 2
:cond_0
array-length v0, p1
.line 3
new-array v1, v0, [Lok/d;
const/4 v2, 0x0
:goto_0
if-ge v2, v0, :cond_1
.line 4
:try_start_0
iget-object v3, p0, Lio/reactivex/internal/operators/parallel/ParallelCollect;->b:Ljava/util/concurrent/Callable;
invoke-interface {v3}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;
move-result-object v3
const-string v4, "The initialSupplier returned a null value"
invoke-static {v3, v4}, Lio/reactivex/internal/functions/a;->g(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object v3
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
.line 5
new-instance v4, Lio/reactivex/internal/operators/parallel/ParallelCollect$ParallelCollectSubscriber;
aget-object v5, p1, v2
iget-object v6, p0, Lio/reactivex/internal/operators/parallel/ParallelCollect;->c:Lph/b;
invoke-direct {v4, v5, v3, v6}, Lio/reactivex/internal/operators/parallel/ParallelCollect$ParallelCollectSubscriber;-><init>(Lok/d;Ljava/lang/Object;Lph/b;)V
aput-object v4, v1, v2
add-int/lit8 v2, v2, 0x1
goto :goto_0
:catchall_0
move-exception v0
.line 6
invoke-static {v0}, Lio/reactivex/exceptions/a;->b(Ljava/lang/Throwable;)V
.line 7
invoke-virtual {p0, p1, v0}, Lio/reactivex/internal/operators/parallel/ParallelCollect;->V([Lok/d;Ljava/lang/Throwable;)V
return-void
.line 8
:cond_1
iget-object p1, p0, Lio/reactivex/internal/operators/parallel/ParallelCollect;->a:Lvh/a;
invoke-virtual {p1, v1}, Lvh/a;->Q([Lok/d;)V
return-void
.end method
.method public V([Lok/d;Ljava/lang/Throwable;)V
.locals 3
.annotation system Ldalvik/annotation/Signature;
value = {
"([",
"Lok/d<",
"*>;",
"Ljava/lang/Throwable;",
")V"
}
.end annotation
.line 1
array-length v0, p1
const/4 v1, 0x0
:goto_0
if-ge v1, v0, :cond_0
aget-object v2, p1, v1
.line 2
invoke-static {p2, v2}, Lio/reactivex/internal/subscriptions/EmptySubscription;->error(Ljava/lang/Throwable;Lok/d;)V
add-int/lit8 v1, v1, 0x1
goto :goto_0
:cond_0
return-void
.end method