Observables.smali

.class public Lorg/web3j/utils/Observables;
.super Ljava/lang/Object;
.source "Observables.java"


# direct methods
.method public constructor <init>()V
    .registers 1

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

    return-void
.end method

.method public static range(Ljava/math/BigInteger;Ljava/math/BigInteger;)Lrx/e;
    .registers 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/math/BigInteger;",
            "Ljava/math/BigInteger;",
            ")",
            "Lrx/e",
            "<",
            "Ljava/math/BigInteger;",
            ">;"
        }
    .end annotation

    .prologue
    .line 15
    const/4 v0, 0x1

    invoke-static {p0, p1, v0}, Lorg/web3j/utils/Observables;->range(Ljava/math/BigInteger;Ljava/math/BigInteger;Z)Lrx/e;

    move-result-object v0

    return-object v0
.end method

.method public static range(Ljava/math/BigInteger;Ljava/math/BigInteger;Z)Lrx/e;
    .registers 5
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/math/BigInteger;",
            "Ljava/math/BigInteger;",
            "Z)",
            "Lrx/e",
            "<",
            "Ljava/math/BigInteger;",
            ">;"
        }
    .end annotation

    .prologue
    .line 28
    sget-object v0, Ljava/math/BigInteger;->ZERO:Ljava/math/BigInteger;

    invoke-virtual {p0, v0}, Ljava/math/BigInteger;->compareTo(Ljava/math/BigInteger;)I

    move-result v0

    const/4 v1, -0x1

    if-ne v0, v1, :cond_11

    .line 29
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "Negative start index cannot be used"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 30
    :cond_11
    invoke-virtual {p0, p1}, Ljava/math/BigInteger;->compareTo(Ljava/math/BigInteger;)I

    move-result v0

    if-lez v0, :cond_1f

    .line 31
    new-instance v0, Ljava/lang/IllegalArgumentException;

    const-string v1, "Negative start index cannot be greater then end index"

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 35
    :cond_1f
    if-eqz p2, :cond_2b

    .line 36
    new-instance v0, Lorg/web3j/utils/Observables$1;

    invoke-direct {v0, p0, p1}, Lorg/web3j/utils/Observables$1;-><init>(Ljava/math/BigInteger;Ljava/math/BigInteger;)V

    invoke-static {v0}, Lrx/e;->a(Lrx/f;)Lrx/e;

    move-result-object v0

    .line 52
    :goto_2a
    return-object v0

    :cond_2b
    new-instance v0, Lorg/web3j/utils/Observables$2;

    invoke-direct {v0, p1, p0}, Lorg/web3j/utils/Observables$2;-><init>(Ljava/math/BigInteger;Ljava/math/BigInteger;)V

    invoke-static {v0}, Lrx/e;->a(Lrx/f;)Lrx/e;

    move-result-object v0

    goto :goto_2a
.end method