237 lines
5.6 KiB
Smali
237 lines
5.6 KiB
Smali
.class abstract Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;
|
|
.super Ljava/lang/Object;
|
|
.source "ObjectMap.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Iterable;
|
|
.implements Ljava/util/Iterator;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/badlogic/gdx/utils/ObjectMap;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x40a
|
|
name = "MapIterator"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<K:",
|
|
"Ljava/lang/Object;",
|
|
"V:",
|
|
"Ljava/lang/Object;",
|
|
"I:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Ljava/lang/Iterable<",
|
|
"TI;>;",
|
|
"Ljava/util/Iterator<",
|
|
"TI;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public b:Z
|
|
|
|
.field final c:Lcom/badlogic/gdx/utils/ObjectMap;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/badlogic/gdx/utils/ObjectMap<",
|
|
"TK;TV;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field d:I
|
|
|
|
.field e:I
|
|
|
|
.field f:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/badlogic/gdx/utils/ObjectMap;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/badlogic/gdx/utils/ObjectMap<",
|
|
"TK;TV;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 677
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 675
|
|
iput-boolean v0, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->f:Z
|
|
|
|
.line 678
|
|
iput-object p1, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->c:Lcom/badlogic/gdx/utils/ObjectMap;
|
|
|
|
.line 679
|
|
invoke-virtual {p0}, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->c()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public c()V
|
|
.locals 1
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 683
|
|
iput v0, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->e:I
|
|
|
|
.line 684
|
|
iput v0, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->d:I
|
|
|
|
.line 685
|
|
invoke-virtual {p0}, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->d()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method d()V
|
|
.locals 4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 689
|
|
iput-boolean v0, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->b:Z
|
|
|
|
.line 690
|
|
iget-object v0, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->c:Lcom/badlogic/gdx/utils/ObjectMap;
|
|
|
|
iget-object v0, v0, Lcom/badlogic/gdx/utils/ObjectMap;->b:[Ljava/lang/Object;
|
|
|
|
.line 691
|
|
iget-object v1, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->c:Lcom/badlogic/gdx/utils/ObjectMap;
|
|
|
|
iget v1, v1, Lcom/badlogic/gdx/utils/ObjectMap;->d:I
|
|
|
|
iget-object v2, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->c:Lcom/badlogic/gdx/utils/ObjectMap;
|
|
|
|
iget v2, v2, Lcom/badlogic/gdx/utils/ObjectMap;->e:I
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
:cond_0
|
|
iget v2, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->d:I
|
|
|
|
const/4 v3, 0x1
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
iput v2, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->d:I
|
|
|
|
if-ge v2, v1, :cond_1
|
|
|
|
.line 692
|
|
iget v2, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->d:I
|
|
|
|
aget-object v2, v0, v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 693
|
|
iput-boolean v3, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->b:Z
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public remove()V
|
|
.locals 3
|
|
|
|
.line 700
|
|
iget v0, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->e:I
|
|
|
|
if-ltz v0, :cond_1
|
|
|
|
.line 701
|
|
iget v0, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->e:I
|
|
|
|
iget-object v1, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->c:Lcom/badlogic/gdx/utils/ObjectMap;
|
|
|
|
iget v1, v1, Lcom/badlogic/gdx/utils/ObjectMap;->d:I
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 702
|
|
iget-object v0, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->c:Lcom/badlogic/gdx/utils/ObjectMap;
|
|
|
|
iget v1, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->e:I
|
|
|
|
invoke-virtual {v0, v1}, Lcom/badlogic/gdx/utils/ObjectMap;->a(I)V
|
|
|
|
.line 703
|
|
iget v0, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->e:I
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
iput v0, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->d:I
|
|
|
|
.line 704
|
|
invoke-virtual {p0}, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->d()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 706
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->c:Lcom/badlogic/gdx/utils/ObjectMap;
|
|
|
|
iget-object v0, v0, Lcom/badlogic/gdx/utils/ObjectMap;->b:[Ljava/lang/Object;
|
|
|
|
iget v1, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->e:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
.line 707
|
|
iget-object v0, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->c:Lcom/badlogic/gdx/utils/ObjectMap;
|
|
|
|
iget-object v0, v0, Lcom/badlogic/gdx/utils/ObjectMap;->c:[Ljava/lang/Object;
|
|
|
|
iget v1, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->e:I
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
:goto_0
|
|
const/4 v0, -0x1
|
|
|
|
.line 709
|
|
iput v0, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->e:I
|
|
|
|
.line 710
|
|
iget-object v0, p0, Lcom/badlogic/gdx/utils/ObjectMap$MapIterator;->c:Lcom/badlogic/gdx/utils/ObjectMap;
|
|
|
|
iget v1, v0, Lcom/badlogic/gdx/utils/ObjectMap;->a:I
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
iput v1, v0, Lcom/badlogic/gdx/utils/ObjectMap;->a:I
|
|
|
|
return-void
|
|
|
|
.line 700
|
|
: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
|