Observables$2.smali

.class final Lorg/web3j/utils/Observables$2;
.super Ljava/lang/Object;
.source "Observables.java"

# interfaces
.implements Lrx/f;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lorg/web3j/utils/Observables;->range(Ljava/math/BigInteger;Ljava/math/BigInteger;Z)Lrx/e;
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Lrx/f",
        "<",
        "Ljava/math/BigInteger;",
        ">;"
    }
.end annotation


# instance fields
.field final synthetic val$endValue:Ljava/math/BigInteger;

.field final synthetic val$startValue:Ljava/math/BigInteger;


# direct methods
.method constructor <init>(Ljava/math/BigInteger;Ljava/math/BigInteger;)V
    .registers 3

    .prologue
    .line 52
    iput-object p1, p0, Lorg/web3j/utils/Observables$2;->val$endValue:Ljava/math/BigInteger;

    iput-object p2, p0, Lorg/web3j/utils/Observables$2;->val$startValue:Ljava/math/BigInteger;

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

    return-void
.end method


# virtual methods
.method public final bridge synthetic call(Ljava/lang/Object;)V
    .registers 2

    .prologue
    .line 52
    check-cast p1, Lrx/o;

    invoke-virtual {p0, p1}, Lorg/web3j/utils/Observables$2;->call(Lrx/o;)V

    return-void
.end method

.method public final call(Lrx/o;)V
    .registers 4
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lrx/o",
            "<-",
            "Ljava/math/BigInteger;",
            ">;)V"
        }
    .end annotation

    .prologue
    .line 55
    iget-object v0, p0, Lorg/web3j/utils/Observables$2;->val$endValue:Ljava/math/BigInteger;

    .line 57
    :goto_2
    iget-object v1, p0, Lorg/web3j/utils/Observables$2;->val$startValue:Ljava/math/BigInteger;

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

    move-result v1

    if-ltz v1, :cond_1a

    invoke-virtual {p1}, Lrx/o;->isUnsubscribed()Z

    move-result v1

    if-nez v1, :cond_1a

    .line 59
    invoke-virtual {p1, v0}, Lrx/o;->onNext(Ljava/lang/Object;)V

    .line 58
    sget-object v1, Ljava/math/BigInteger;->ONE:Ljava/math/BigInteger;

    invoke-virtual {v0, v1}, Ljava/math/BigInteger;->subtract(Ljava/math/BigInteger;)Ljava/math/BigInteger;

    move-result-object v0

    goto :goto_2

    .line 62
    :cond_1a
    invoke-virtual {p1}, Lrx/o;->isUnsubscribed()Z

    move-result v0

    if-nez v0, :cond_23

    .line 63
    invoke-virtual {p1}, Lrx/o;->SG()V

    .line 65
    :cond_23
    return-void
.end method