.class Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;
.super Ljava/lang/Object;
.source "ObjectFloatMap.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/badlogic/gdx/utils/ObjectFloatMap;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "MapIterator"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "<K:",
        "Ljava/lang/Object;",
        ">",
        "Ljava/lang/Object;"
    }
.end annotation


# instance fields
.field public a:Z

.field final b:Lcom/badlogic/gdx/utils/ObjectFloatMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Lcom/badlogic/gdx/utils/ObjectFloatMap<",
            "TK;>;"
        }
    .end annotation
.end field

.field c:I

.field d:I

.field e:Z


# direct methods
.method public constructor <init>(Lcom/badlogic/gdx/utils/ObjectFloatMap;)V
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Lcom/badlogic/gdx/utils/ObjectFloatMap<",
            "TK;>;)V"
        }
    .end annotation

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

    const/4 v0, 0x1

    .line 629
    iput-boolean v0, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->e:Z

    .line 632
    iput-object p1, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->b:Lcom/badlogic/gdx/utils/ObjectFloatMap;

    .line 633
    invoke-virtual {p0}, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->c()V

    return-void
.end method


# virtual methods
.method public c()V
    .locals 1

    const/4 v0, -0x1

    .line 637
    iput v0, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->d:I

    .line 638
    iput v0, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->c:I

    .line 639
    invoke-virtual {p0}, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->d()V

    return-void
.end method

.method d()V
    .locals 4

    const/4 v0, 0x0

    .line 643
    iput-boolean v0, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->a:Z

    .line 644
    iget-object v0, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->b:Lcom/badlogic/gdx/utils/ObjectFloatMap;

    iget-object v0, v0, Lcom/badlogic/gdx/utils/ObjectFloatMap;->b:[Ljava/lang/Object;

    .line 645
    iget-object v1, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->b:Lcom/badlogic/gdx/utils/ObjectFloatMap;

    iget v1, v1, Lcom/badlogic/gdx/utils/ObjectFloatMap;->d:I

    iget-object v2, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->b:Lcom/badlogic/gdx/utils/ObjectFloatMap;

    iget v2, v2, Lcom/badlogic/gdx/utils/ObjectFloatMap;->e:I

    add-int/2addr v1, v2

    :cond_0
    iget v2, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->c:I

    const/4 v3, 0x1

    add-int/2addr v2, v3

    iput v2, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->c:I

    if-ge v2, v1, :cond_1

    .line 646
    iget v2, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->c:I

    aget-object v2, v0, v2

    if-eqz v2, :cond_0

    .line 647
    iput-boolean v3, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->a:Z

    :cond_1
    return-void
.end method

.method public remove()V
    .locals 3

    .line 654
    iget v0, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->d:I

    if-ltz v0, :cond_1

    .line 655
    iget v0, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->d:I

    iget-object v1, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->b:Lcom/badlogic/gdx/utils/ObjectFloatMap;

    iget v1, v1, Lcom/badlogic/gdx/utils/ObjectFloatMap;->d:I

    if-lt v0, v1, :cond_0

    .line 656
    iget-object v0, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->b:Lcom/badlogic/gdx/utils/ObjectFloatMap;

    iget v1, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->d:I

    invoke-virtual {v0, v1}, Lcom/badlogic/gdx/utils/ObjectFloatMap;->a(I)V

    .line 657
    iget v0, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->d:I

    add-int/lit8 v0, v0, -0x1

    iput v0, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->c:I

    .line 658
    invoke-virtual {p0}, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->d()V

    goto :goto_0

    .line 660
    :cond_0
    iget-object v0, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->b:Lcom/badlogic/gdx/utils/ObjectFloatMap;

    iget-object v0, v0, Lcom/badlogic/gdx/utils/ObjectFloatMap;->b:[Ljava/lang/Object;

    iget v1, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->d:I

    const/4 v2, 0x0

    aput-object v2, v0, v1

    :goto_0
    const/4 v0, -0x1

    .line 662
    iput v0, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->d:I

    .line 663
    iget-object v0, p0, Lcom/badlogic/gdx/utils/ObjectFloatMap$MapIterator;->b:Lcom/badlogic/gdx/utils/ObjectFloatMap;

    iget v1, v0, Lcom/badlogic/gdx/utils/ObjectFloatMap;->a:I

    add-int/lit8 v1, v1, -0x1

    iput v1, v0, Lcom/badlogic/gdx/utils/ObjectFloatMap;->a:I

    return-void

    .line 654
    :cond_1
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "next must be called before remove."

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

    throw v0
.end method
