p1.smali

.class public final Lio/reactivex/internal/operators/observable/p1;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Lio/reactivex/functions/n;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "<T:",
        "Ljava/lang/Object;",
        "U:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;",
        "Lio/reactivex/functions/n<",
        "TT;",
        "Lio/reactivex/q<",
        "TT;>;>;"
    }
.end annotation


# instance fields
.field public final a:Lio/reactivex/functions/n;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lio/reactivex/functions/n<",
            "-TT;+",
            "Lio/reactivex/q<",
            "TU;>;>;"
        }
    .end annotation
.end field


# direct methods
.method public constructor <init>(Lio/reactivex/functions/n;)V
    .registers 2
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lio/reactivex/functions/n<",
            "-TT;+",
            "Lio/reactivex/q<",
            "TU;>;>;)V"
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p1, p0, Lio/reactivex/internal/operators/observable/p1;->a:Lio/reactivex/functions/n;

    return-void
.end method


# virtual methods
.method public final apply(Ljava/lang/Object;)Ljava/lang/Object;
    .registers 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/Exception;
        }
    .end annotation

    .line 1
    iget-object v0, p0, Lio/reactivex/internal/operators/observable/p1;->a:Lio/reactivex/functions/n;

    invoke-interface {v0, p1}, Lio/reactivex/functions/n;->apply(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    const-string v1, "The itemDelay returned a null ObservableSource"

    .line 2
    invoke-static {v0, v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;

    .line 3
    check-cast v0, Lio/reactivex/q;

    .line 4
    new-instance v1, Lio/reactivex/internal/operators/observable/v3;

    const-wide/16 v2, 0x1

    invoke-direct {v1, v0, v2, v3}, Lio/reactivex/internal/operators/observable/v3;-><init>(Lio/reactivex/q;J)V

    .line 5
    new-instance v0, Lio/reactivex/internal/functions/a$u;

    invoke-direct {v0, p1}, Lio/reactivex/internal/functions/a$u;-><init>(Ljava/lang/Object;)V

    .line 6
    invoke-virtual {v1, v0}, Lio/reactivex/l;->map(Lio/reactivex/functions/n;)Lio/reactivex/l;

    move-result-object v0

    invoke-virtual {v0, p1}, Lio/reactivex/l;->defaultIfEmpty(Ljava/lang/Object;)Lio/reactivex/l;

    move-result-object p1

    return-object p1
.end method