DescLongIterator.smali

.class Lorg/apache/commons/jexl3/internal/DescLongIterator;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/util/Iterator;


# annotations
.annotation system Ldalvik/annotation/Signature;
    value = {
        "Ljava/lang/Object;",
        "Ljava/util/Iterator<",
        "Ljava/lang/Long;",
        ">;"
    }
.end annotation


# instance fields
.field private cursor:J

.field private final max:J

.field private final min:J


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

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

    .line 2
    iput-wide p1, p0, Lorg/apache/commons/jexl3/internal/DescLongIterator;->min:J

    .line 3
    iput-wide p3, p0, Lorg/apache/commons/jexl3/internal/DescLongIterator;->max:J

    .line 4
    iput-wide p3, p0, Lorg/apache/commons/jexl3/internal/DescLongIterator;->cursor:J

    return-void
.end method


# virtual methods
.method public hasNext()Z
    .registers 6

    iget-wide v0, p0, Lorg/apache/commons/jexl3/internal/DescLongIterator;->cursor:J

    iget-wide v2, p0, Lorg/apache/commons/jexl3/internal/DescLongIterator;->min:J

    cmp-long v4, v0, v2

    if-ltz v4, :cond_a

    const/4 v0, 0x1

    goto :goto_b

    :cond_a
    const/4 v0, 0x0

    :goto_b
    return v0
.end method

.method public next()Ljava/lang/Long;
    .registers 6

    .line 2
    iget-wide v0, p0, Lorg/apache/commons/jexl3/internal/DescLongIterator;->cursor:J

    iget-wide v2, p0, Lorg/apache/commons/jexl3/internal/DescLongIterator;->min:J

    cmp-long v4, v0, v2

    if-ltz v4, :cond_13

    const-wide/16 v2, 0x1

    sub-long v2, v0, v2

    .line 3
    iput-wide v2, p0, Lorg/apache/commons/jexl3/internal/DescLongIterator;->cursor:J

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    return-object v0

    .line 4
    :cond_13
    new-instance v0, Ljava/util/NoSuchElementException;

    invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V

    throw v0
.end method

.method public bridge synthetic next()Ljava/lang/Object;
    .registers 2

    .line 1
    invoke-virtual {p0}, Lorg/apache/commons/jexl3/internal/DescLongIterator;->next()Ljava/lang/Long;

    move-result-object v0

    return-object v0
.end method

.method public remove()V
    .registers 2

    new-instance v0, Ljava/lang/UnsupportedOperationException;

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

    throw v0
.end method