FlowableInternalHelper$ItemDelayFunction.smali
.class final Lio/reactivex/internal/operators/flowable/FlowableInternalHelper$ItemDelayFunction;
.super Ljava/lang/Object;
.source "FlowableInternalHelper.java"
# interfaces
.implements Lio/reactivex/functions/Function;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/reactivex/internal/operators/flowable/FlowableInternalHelper;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = "ItemDelayFunction"
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"U:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lio/reactivex/functions/Function<",
"TT;",
"Lorg/reactivestreams/Publisher<",
"TT;>;>;"
}
.end annotation
# instance fields
.field final itemDelay:Lio/reactivex/functions/Function;
.annotation system Ldalvik/annotation/Signature;
value = {
"Lio/reactivex/functions/Function<",
"-TT;+",
"Lorg/reactivestreams/Publisher<",
"TU;>;>;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
return-void
.end method
.method constructor <init>(Lio/reactivex/functions/Function;)V
.registers 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lio/reactivex/functions/Function<",
"-TT;+",
"Lorg/reactivestreams/Publisher<",
"TU;>;>;)V"
}
.end annotation
.line 74
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableInternalHelper$ItemDelayFunction;, "Lio/reactivex/internal/operators/flowable/FlowableInternalHelper$ItemDelayFunction<TT;TU;>;"
.local p1, "itemDelay":Lio/reactivex/functions/Function;, "Lio/reactivex/functions/Function<-TT;+Lorg/reactivestreams/Publisher<TU;>;>;"
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 75
iput-object p1, p0, Lio/reactivex/internal/operators/flowable/FlowableInternalHelper$ItemDelayFunction;->itemDelay:Lio/reactivex/functions/Function;
.line 76
return-void
.end method
# virtual methods
.method public bridge synthetic apply(Ljava/lang/Object;)Ljava/lang/Object;
.registers 2
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 71
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableInternalHelper$ItemDelayFunction;, "Lio/reactivex/internal/operators/flowable/FlowableInternalHelper$ItemDelayFunction<TT;TU;>;"
invoke-virtual {p0, p1}, Lio/reactivex/internal/operators/flowable/FlowableInternalHelper$ItemDelayFunction;->apply(Ljava/lang/Object;)Lorg/reactivestreams/Publisher;
move-result-object p1
return-object p1
.end method
.method public apply(Ljava/lang/Object;)Lorg/reactivestreams/Publisher;
.registers 6
.annotation system Ldalvik/annotation/Signature;
value = {
"(TT;)",
"Lorg/reactivestreams/Publisher<",
"TT;>;"
}
.end annotation
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.line 80
.local p0, "this":Lio/reactivex/internal/operators/flowable/FlowableInternalHelper$ItemDelayFunction;, "Lio/reactivex/internal/operators/flowable/FlowableInternalHelper$ItemDelayFunction<TT;TU;>;"
.local p1, "v":Ljava/lang/Object;, "TT;"
iget-object v0, p0, Lio/reactivex/internal/operators/flowable/FlowableInternalHelper$ItemDelayFunction;->itemDelay: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 itemDelay returned a null Publisher"
invoke-static {v0, v1}, Lio/reactivex/internal/functions/ObjectHelper;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lorg/reactivestreams/Publisher;
.line 81
.local v0, "p":Lorg/reactivestreams/Publisher;, "Lorg/reactivestreams/Publisher<TU;>;"
new-instance v1, Lio/reactivex/internal/operators/flowable/FlowableTakePublisher;
const-wide/16 v2, 0x1
invoke-direct {v1, v0, v2, v3}, Lio/reactivex/internal/operators/flowable/FlowableTakePublisher;-><init>(Lorg/reactivestreams/Publisher;J)V
invoke-static {p1}, Lio/reactivex/internal/functions/Functions;->justFunction(Ljava/lang/Object;)Lio/reactivex/functions/Function;
move-result-object v2
invoke-virtual {v1, v2}, Lio/reactivex/internal/operators/flowable/FlowableTakePublisher;->map(Lio/reactivex/functions/Function;)Lio/reactivex/Flowable;
move-result-object v1
invoke-virtual {v1, p1}, Lio/reactivex/Flowable;->defaultIfEmpty(Ljava/lang/Object;)Lio/reactivex/Flowable;
move-result-object v1
return-object v1
.end method