FlowableMap$MapSubscriber.smali
.class final Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber;
.super Lio/reactivex/internal/subscribers/BasicFuseableSubscriber;
.source "FlowableMap.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/flowable/FlowableMap;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "MapSubscriber"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"U:",
"Ljava/lang/Object;",
">",
"Lio/reactivex/internal/subscribers/BasicFuseableSubscriber<",
"TT;TU;>;"
}
.end annotation
# instance fields
.field final mapper:Lio/reactivex/functions/Function;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/Function<",
"-TT;+TU;>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lorg/reactivestreams/Subscriber;Lio/reactivex/functions/Function;)V
.registers 3
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lorg/reactivestreams/Subscriber<",
"-TU;>;",
"Lio/reactivex/functions/Function<",
"-TT;+TU;>;)V"
}
.end annotation
.line 46
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber<TT;TU;>;"
.local p1, "actual":Lorg/reactivestreams/Subscriber;, "Lorg/reactivestreams/Subscriber<-TU;>;"
.local p2, "mapper":Lio/reactivex/functions/Function;, "Lio/reactivex/functions/Function<-TT;+TU;>;"
invoke-direct {p0, p1}, Lio/reactivex/internal/subscribers/BasicFuseableSubscriber;-><init>(Lorg/reactivestreams/Subscriber;)V
.line 47
iput-object p2, p0, Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber;->mapper:Lio/reactivex/functions/Function;
.line 48
return-void
.end method
# virtual methods
.method public onNext(Ljava/lang/Object;)V
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)V"
}
.end annotation
.line 52
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber<TT;TU;>;"
.local p1, "t":Ljava/lang/Object;, "TT;"
iget-boolean v0, p0, Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber;->done:Z
if-eqz v0, :cond_5
.line 53
return-void
.line 56
:cond_5
iget v0, p0, Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber;->sourceMode:I
if-eqz v0, :cond_10
.line 57
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber;->actual:Lorg/reactivestreams/Subscriber;
const/4 v1, 0x0
invoke-interface {v0, v1}, Lorg/reactivestreams/Subscriber;->onNext(Ljava/lang/Object;)V
.line 58
return-void
.line 64
:cond_10
:try_start_10
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber;->mapper:Lio/reactivex/functions/Function;
invoke-interface {v0, p1}, Lio/reactivex/functions/Function;->apply(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
const-string v1, "The mapper function 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_1c
.catchall {:try_start_10 .. :try_end_1c} :catchall_23
.line 68
.local v0, "v":Ljava/lang/Object;, "TU;"
nop
.line 69
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber;->actual:Lorg/reactivestreams/Subscriber;
invoke-interface {v1, v0}, Lorg/reactivestreams/Subscriber;->onNext(Ljava/lang/Object;)V
.line 70
return-void
.line 65
.end local v0 # "v":Ljava/lang/Object;, "TU;"
:catchall_23
move-exception v0
.line 66
.local v0, "ex":Ljava/lang/Throwable;
invoke-virtual {p0, v0}, Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber;->fail(Ljava/lang/Throwable;)V
.line 67
return-void
.end method
.method public poll()Ljava/lang/Object;
.registers 4
.annotation system Ldalvik/annotation/Signature;
value = {
"()TU;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 80
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber<TT;TU;>;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber;->qs:Lio/reactivex/internal/fuseable/QueueSubscription;
invoke-interface {v0}, Lio/reactivex/internal/fuseable/QueueSubscription;->poll()Ljava/lang/Object;
move-result-object v0
.line 81
.local v0, "t":Ljava/lang/Object;, "TT;"
if-eqz v0, :cond_15
iget-object v1, p0, Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber;->mapper:Lio/reactivex/functions/Function;
invoke-interface {v1, v0}, Lio/reactivex/functions/Function;->apply(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
const-string v2, "The mapper function returned a null value."
invoke-static {v1, v2}, Lio/reactivex/internal/functions/ObjectHelper;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object v1
goto :goto_16
:cond_15
const/4 v1, 0x0
:goto_16
return-object v1
.end method
.method public requestFusion(I)I
.registers 3
.param p1, "mode" # I
.line 74
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber;, "Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber<TT;TU;>;"
invoke-virtual {p0, p1}, Lio/reactivex/internal/operators/flowable/FlowableMap$MapSubscriber;->transitiveBoundaryFusion(I)I
move-result v0
return v0
.end method