AscLongIterator.smali
.class Lorg/apache/commons/jexl3/internal/AscLongIterator;
.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/AscLongIterator;->min:J
.line 3
iput-wide p3, p0, Lorg/apache/commons/jexl3/internal/AscLongIterator;->max:J
.line 4
iput-wide p1, p0, Lorg/apache/commons/jexl3/internal/AscLongIterator;->cursor:J
return-void
.end method
# virtual methods
.method public hasNext()Z
.registers 6
iget-wide v0, p0, Lorg/apache/commons/jexl3/internal/AscLongIterator;->cursor:J
iget-wide v2, p0, Lorg/apache/commons/jexl3/internal/AscLongIterator;->max:J
cmp-long v4, v0, v2
if-gtz 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/AscLongIterator;->cursor:J
iget-wide v2, p0, Lorg/apache/commons/jexl3/internal/AscLongIterator;->max:J
cmp-long v4, v0, v2
if-gtz v4, :cond_12
const-wide/16 v2, 0x1
add-long/2addr v2, v0
.line 3
iput-wide v2, p0, Lorg/apache/commons/jexl3/internal/AscLongIterator;->cursor:J
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
return-object v0
.line 4
:cond_12
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/AscLongIterator;->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