FlowableSwitchMap.smali
.class public final Lio/reactivex/internal/operators/flowable/FlowableSwitchMap;
.super Lio/reactivex/internal/operators/flowable/AbstractFlowableWithUpstream;
.source "FlowableSwitchMap.java"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lio/reactivex/internal/operators/flowable/FlowableSwitchMap$SwitchMapInnerSubscriber;,
Lio/reactivex/internal/operators/flowable/FlowableSwitchMap$SwitchMapSubscriber;
}
.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 bufferSize:I
.field final delayErrors:Z
.field final mapper:Lio/reactivex/functions/Function;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/Function<",
"-TT;+",
"Lorg/reactivestreams/Publisher<",
"+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;Lio/reactivex/functions/Function;IZ)V
.registers 5
.param p3, "bufferSize" # I
.param p4, "delayErrors" # Z
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/Flowable<",
"TT;>;",
"Lio/reactivex/functions/Function<",
"-TT;+",
"Lorg/reactivestreams/Publisher<",
"+TR;>;>;IZ)V"
}
.end annotation
.line 38
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableSwitchMap;, "Lio/reactivex/internal/operators/flowable/FlowableSwitchMap<TT;TR;>;"
.local p1, "source":Lio/reactivex/Flowable;, "Lio/reactivex/Flowable<TT;>;"
.local p2, "mapper":Lio/reactivex/functions/Function;, "Lio/reactivex/functions/Function<-TT;+Lorg/reactivestreams/Publisher<+TR;>;>;"
invoke-direct {p0, p1}, Lio/reactivex/internal/operators/flowable/AbstractFlowableWithUpstream;-><init>(Lio/reactivex/Flowable;)V
.line 39
iput-object p2, p0, Lio/reactivex/internal/operators/flowable/FlowableSwitchMap;->mapper:Lio/reactivex/functions/Function;
.line 40
iput p3, p0, Lio/reactivex/internal/operators/flowable/FlowableSwitchMap;->bufferSize:I
.line 41
iput-boolean p4, p0, Lio/reactivex/internal/operators/flowable/FlowableSwitchMap;->delayErrors:Z
.line 42
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 46
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableSwitchMap;, "Lio/reactivex/internal/operators/flowable/FlowableSwitchMap<TT;TR;>;"
.local p1, "s":Lorg/reactivestreams/Subscriber;, "Lorg/reactivestreams/Subscriber<-TR;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableSwitchMap;->source:Lio/reactivex/Flowable;
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableSwitchMap;->mapper:Lio/reactivex/functions/Function;
invoke-static {v0, p1, v1}, Lio/reactivex/internal/operators/flowable/FlowableScalarXMap;->tryScalarXMapSubscribe(Lorg/reactivestreams/Publisher;Lorg/reactivestreams/Subscriber;Lio/reactivex/functions/Function;)Z
move-result v0
if-eqz v0, :cond_b
.line 47
return-void
.line 49
:cond_b
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableSwitchMap;->source:Lio/reactivex/Flowable;
new-instance v1, Lio/reactivex/internal/operators/flowable/FlowableSwitchMap$SwitchMapSubscriber;
iget-object v2, p0, Lio/reactivex/internal/operators/flowable/FlowableSwitchMap;->mapper:Lio/reactivex/functions/Function;
iget v3, p0, Lio/reactivex/internal/operators/flowable/FlowableSwitchMap;->bufferSize:I
iget-boolean v4, p0, Lio/reactivex/internal/operators/flowable/FlowableSwitchMap;->delayErrors:Z
invoke-direct {v1, p1, v2, v3, v4}, Lio/reactivex/internal/operators/flowable/FlowableSwitchMap$SwitchMapSubscriber;-><init>(Lorg/reactivestreams/Subscriber;Lio/reactivex/functions/Function;IZ)V
invoke-virtual {v0, v1}, Lio/reactivex/Flowable;->subscribe(Lio/reactivex/FlowableSubscriber;)V
.line 50
return-void
.end method