FlowableReduceWithSingle.smali
.class public final Lio/reactivex/internal/operators/flowable/FlowableReduceWithSingle;
.super Lio/reactivex/Single;
.source "FlowableReduceWithSingle.java"
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/Single<",
"TR;>;"
}
.end annotation
# instance fields
.field final reducer: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
.field final source:Lorg/reactivestreams/Publisher;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lorg/reactivestreams/Publisher<",
"TT;>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method public constructor <init>(Lorg/reactivestreams/Publisher;Ljava/util/concurrent/Callable;Lio/reactivex/functions/BiFunction;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lorg/reactivestreams/Publisher<",
"TT;>;",
"Ljava/util/concurrent/Callable<",
"TR;>;",
"Lio/reactivex/functions/BiFunction<",
"TR;-TT;TR;>;)V"
}
.end annotation
.line 42
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableReduceWithSingle;, "Lio/reactivex/internal/operators/flowable/FlowableReduceWithSingle<TT;TR;>;"
.local p1, "source":Lorg/reactivestreams/Publisher;, "Lorg/reactivestreams/Publisher<TT;>;"
.local p2, "seedSupplier":Ljava/util/concurrent/Callable;, "Ljava/util/concurrent/Callable<TR;>;"
.local p3, "reducer":Lio/reactivex/functions/BiFunction;, "Lio/reactivex/functions/BiFunction<TR;-TT;TR;>;"
invoke-direct {p0}, Lio/reactivex/Single;-><init>()V
.line 43
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceWithSingle;->source:Lorg/reactivestreams/Publisher;
.line 44
iput-object p2, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceWithSingle;->seedSupplier:Ljava/util/concurrent/Callable;
.line 45
iput-object p3, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceWithSingle;->reducer:Lio/reactivex/functions/BiFunction;
.line 46
return-void
.end method
# virtual methods
.method protected subscribeActual(Lio/reactivex/SingleObserver;)V
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/SingleObserver<",
"-TR;>;)V"
}
.end annotation
.line 53
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableReduceWithSingle;, "Lio/reactivex/internal/operators/flowable/FlowableReduceWithSingle<TT;TR;>;"
.local p1, "observer":Lio/reactivex/SingleObserver;, "Lio/reactivex/SingleObserver<-TR;>;"
:try_start_0
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceWithSingle;->seedSupplier:Ljava/util/concurrent/Callable;
invoke-interface {v0}, Ljava/util/concurrent/Callable;->call()Ljava/lang/Object;
move-result-object v0
const-string v1, "The seedSupplier returned a null value"
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_1a
.line 58
.local v0, "seed":Ljava/lang/Object;, "TR;"
nop
.line 59
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceWithSingle;->source:Lorg/reactivestreams/Publisher;
new-instance v2, Lio/reactivex/internal/operators/flowable/FlowableReduceSeedSingle$ReduceSeedObserver;
iget-object v3, p0, Lio/reactivex/internal/operators/flowable/FlowableReduceWithSingle;->reducer:Lio/reactivex/functions/BiFunction;
invoke-direct {v2, p1, v3, v0}, Lio/reactivex/internal/operators/flowable/FlowableReduceSeedSingle$ReduceSeedObserver;-><init>(Lio/reactivex/SingleObserver;Lio/reactivex/functions/BiFunction;Ljava/lang/Object;)V
invoke-interface {v1, v2}, Lorg/reactivestreams/Publisher;->subscribe(Lorg/reactivestreams/Subscriber;)V
.line 60
return-void
.line 54
.end local v0 # "seed":Ljava/lang/Object;, "TR;"
:catchall_1a
move-exception v0
.line 55
.local v0, "ex":Ljava/lang/Throwable;
invoke-static {v0}, Lio/reactivex/exceptions/Exceptions;->throwIfFatal(Ljava/lang/Throwable;)V
.line 56
invoke-static {v0, p1}, Lio/reactivex/internal/disposables/EmptyDisposable;->error(Ljava/lang/Throwable;Lio/reactivex/SingleObserver;)V
.line 57
return-void
.end method