FlowableScanSeed.smali
.class public final Lio/reactivex/internal/operators/flowable/FlowableScanSeed;
.super Lio/reactivex/internal/operators/flowable/AbstractFlowableWithUpstream;
.source "FlowableScanSeed.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lio/reactivex/internal/operators/flowable/FlowableScanSeed$ScanSeedSubscriber;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/internal/operators/flowable/AbstractFlowableWithUpstream<",
"TT;TR;>;"
}
.end annotation
# instance fields
.field final accumulator:Lio/reactivex/functions/BiFunction;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/BiFunction<",
"TR;-TT;TR;>;"
}
.end annotation
.end field
.field final seedSupplier:Ljava/util/concurrent/Callable;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/concurrent/Callable<",
"TR;>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Lio/reactivex/Flowable;Ljava/util/concurrent/Callable;Lio/reactivex/functions/BiFunction;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/Flowable<",
"TT;>;",
"Ljava/util/concurrent/Callable<",
"TR;>;",
"Lio/reactivex/functions/BiFunction<",
"TR;-TT;TR;>;)V"
}
.end annotation
.line 35
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableScanSeed;, "Lio/reactivex/internal/operators/flowable/FlowableScanSeed<TT;TR;>;"
.local p1, "source":Lio/reactivex/Flowable;, "Lio/reactivex/Flowable<TT;>;"
.local p2, "seedSupplier":Ljava/util/concurrent/Callable;, "Ljava/util/concurrent/Callable<TR;>;"
.local p3, "accumulator":Lio/reactivex/functions/BiFunction;, "Lio/reactivex/functions/BiFunction<TR;-TT;TR;>;"
invoke-direct {p0, p1}, Lio/reactivex/internal/operators/flowable/AbstractFlowableWithUpstream;-><init>(Lio/reactivex/Flowable;)V
.line 36
iput-object p3, p0, Lio/reactivex/internal/operators/flowable/FlowableScanSeed;->accumulator:Lio/reactivex/functions/BiFunction;
.line 37
iput-object p2, p0, Lio/reactivex/internal/operators/flowable/FlowableScanSeed;->seedSupplier:Ljava/util/concurrent/Callable;
.line 38
return-void
.end method
# virtual methods
.method protected subscribeActual(Lorg/reactivestreams/Subscriber;)V
.registers 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lorg/reactivestreams/Subscriber<",
"-TR;>;)V"
}
.end annotation
.line 45
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableScanSeed;, "Lio/reactivex/internal/operators/flowable/FlowableScanSeed<TT;TR;>;"
.local p1, "s":Lorg/reactivestreams/Subscriber;, "Lorg/reactivestreams/Subscriber<-TR;>;"
:try_start_0
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableScanSeed;->seedSupplier:Ljava/util/concurrent/Callable;
invoke-interface {v0}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;
move-result-object v0
const-string v1, "The seed supplied is null"
invoke-static {v0, v1}, Lio/reactivex/internal/functions/ObjectHelper;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
:try_end_c
.catchall {:try_start_0 .. :try_end_c} :catchall_1e
.line 50
.local v0, "r":Ljava/lang/Object;, "TR;"
nop
.line 52
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableScanSeed;->source:Lio/reactivex/Flowable;
new-instance v2, Lio/reactivex/internal/operators/flowable/FlowableScanSeed$ScanSeedSubscriber;
iget-object v3, p0, Lio/reactivex/internal/operators/flowable/FlowableScanSeed;->accumulator:Lio/reactivex/functions/BiFunction;
invoke-static {}, Lio/reactivex/internal/operators/flowable/FlowableScanSeed;->bufferSize()I
move-result v4
invoke-direct {v2, p1, v3, v0, v4}, Lio/reactivex/internal/operators/flowable/FlowableScanSeed$ScanSeedSubscriber;-><init>(Lorg/reactivestreams/Subscriber;Lio/reactivex/functions/BiFunction;Ljava/lang/Object;I)V
invoke-virtual {v1, v2}, Lio/reactivex/Flowable;->subscribe(Lio/reactivex/FlowableSubscriber;)V
.line 53
return-void
.line 46
.end local v0 # "r":Ljava/lang/Object;, "TR;"
:catchall_1e
move-exception v0
.line 47
.local v0, "e":Ljava/lang/Throwable;
invoke-static {v0}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
.line 48
invoke-static {v0, p1}, Lio/reactivex/internal/subscriptions/EmptySubscription;->error(Ljava/lang/Throwable;Lorg/reactivestreams/Subscriber;)V
.line 49
return-void
.end method