328 lines
7.9 KiB
Smali
328 lines
7.9 KiB
Smali
.class public Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;
|
|
.super Ljava/lang/Object;
|
|
.source "ObjectSet.java"
|
|
|
|
# interfaces
|
|
.implements Ljava/lang/Iterable;
|
|
.implements Ljava/util/Iterator;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/badlogic/gdx/utils/ObjectSet;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "ObjectSetIterator"
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<K:",
|
|
"Ljava/lang/Object;",
|
|
">",
|
|
"Ljava/lang/Object;",
|
|
"Ljava/lang/Iterable<",
|
|
"TK;>;",
|
|
"Ljava/util/Iterator<",
|
|
"TK;>;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public a:Z
|
|
|
|
.field final b:Lcom/badlogic/gdx/utils/ObjectSet;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lcom/badlogic/gdx/utils/ObjectSet<",
|
|
"TK;>;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
.field c:I
|
|
|
|
.field d:I
|
|
|
|
.field e:Z
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/badlogic/gdx/utils/ObjectSet;)V
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Lcom/badlogic/gdx/utils/ObjectSet<",
|
|
"TK;>;)V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 480
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
const/4 v0, 0x1
|
|
|
|
.line 478
|
|
iput-boolean v0, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->e:Z
|
|
|
|
.line 481
|
|
iput-object p1, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->b:Lcom/badlogic/gdx/utils/ObjectSet;
|
|
|
|
.line 482
|
|
invoke-virtual {p0}, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->a()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a()V
|
|
.locals 1
|
|
|
|
const/4 v0, -0x1
|
|
|
|
.line 486
|
|
iput v0, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->d:I
|
|
|
|
.line 487
|
|
iput v0, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->c:I
|
|
|
|
.line 488
|
|
invoke-virtual {p0}, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->b()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method b()V
|
|
.locals 4
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 492
|
|
iput-boolean v0, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->a:Z
|
|
|
|
.line 493
|
|
iget-object v0, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->b:Lcom/badlogic/gdx/utils/ObjectSet;
|
|
|
|
iget-object v0, v0, Lcom/badlogic/gdx/utils/ObjectSet;->b:[Ljava/lang/Object;
|
|
|
|
.line 494
|
|
iget-object v1, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->b:Lcom/badlogic/gdx/utils/ObjectSet;
|
|
|
|
iget v1, v1, Lcom/badlogic/gdx/utils/ObjectSet;->c:I
|
|
|
|
iget-object v2, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->b:Lcom/badlogic/gdx/utils/ObjectSet;
|
|
|
|
iget v2, v2, Lcom/badlogic/gdx/utils/ObjectSet;->d:I
|
|
|
|
add-int/2addr v1, v2
|
|
|
|
:cond_0
|
|
iget v2, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->c:I
|
|
|
|
const/4 v3, 0x1
|
|
|
|
add-int/2addr v2, v3
|
|
|
|
iput v2, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->c:I
|
|
|
|
if-ge v2, v1, :cond_1
|
|
|
|
.line 495
|
|
iget v2, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->c:I
|
|
|
|
aget-object v2, v0, v2
|
|
|
|
if-eqz v2, :cond_0
|
|
|
|
.line 496
|
|
iput-boolean v3, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->a:Z
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
.method public c()Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;
|
|
.locals 0
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()",
|
|
"Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator<",
|
|
"TK;>;"
|
|
}
|
|
.end annotation
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public hasNext()Z
|
|
.locals 2
|
|
|
|
.line 516
|
|
iget-boolean v0, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->e:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 517
|
|
iget-boolean v0, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->a:Z
|
|
|
|
return v0
|
|
|
|
.line 516
|
|
:cond_0
|
|
new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;
|
|
|
|
const-string v1, "#iterator() cannot be used nested."
|
|
|
|
invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public synthetic iterator()Ljava/util/Iterator;
|
|
.locals 1
|
|
|
|
.line 473
|
|
invoke-virtual {p0}, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->c()Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public next()Ljava/lang/Object;
|
|
.locals 2
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"()TK;"
|
|
}
|
|
.end annotation
|
|
|
|
.line 521
|
|
iget-boolean v0, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->a:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
.line 522
|
|
iget-boolean v0, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->e:Z
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
.line 523
|
|
iget-object v0, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->b:Lcom/badlogic/gdx/utils/ObjectSet;
|
|
|
|
iget-object v0, v0, Lcom/badlogic/gdx/utils/ObjectSet;->b:[Ljava/lang/Object;
|
|
|
|
iget v1, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->c:I
|
|
|
|
aget-object v0, v0, v1
|
|
|
|
.line 524
|
|
iget v1, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->c:I
|
|
|
|
iput v1, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->d:I
|
|
|
|
.line 525
|
|
invoke-virtual {p0}, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->b()V
|
|
|
|
return-object v0
|
|
|
|
.line 522
|
|
:cond_0
|
|
new-instance v0, Lcom/badlogic/gdx/utils/GdxRuntimeException;
|
|
|
|
const-string v1, "#iterator() cannot be used nested."
|
|
|
|
invoke-direct {v0, v1}, Lcom/badlogic/gdx/utils/GdxRuntimeException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
.line 521
|
|
:cond_1
|
|
new-instance v0, Ljava/util/NoSuchElementException;
|
|
|
|
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public remove()V
|
|
.locals 3
|
|
|
|
.line 503
|
|
iget v0, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->d:I
|
|
|
|
if-ltz v0, :cond_1
|
|
|
|
.line 504
|
|
iget v0, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->d:I
|
|
|
|
iget-object v1, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->b:Lcom/badlogic/gdx/utils/ObjectSet;
|
|
|
|
iget v1, v1, Lcom/badlogic/gdx/utils/ObjectSet;->c:I
|
|
|
|
if-lt v0, v1, :cond_0
|
|
|
|
.line 505
|
|
iget-object v0, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->b:Lcom/badlogic/gdx/utils/ObjectSet;
|
|
|
|
iget v1, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->d:I
|
|
|
|
invoke-virtual {v0, v1}, Lcom/badlogic/gdx/utils/ObjectSet;->a(I)V
|
|
|
|
.line 506
|
|
iget v0, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->d:I
|
|
|
|
add-int/lit8 v0, v0, -0x1
|
|
|
|
iput v0, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->c:I
|
|
|
|
.line 507
|
|
invoke-virtual {p0}, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->b()V
|
|
|
|
goto :goto_0
|
|
|
|
.line 509
|
|
:cond_0
|
|
iget-object v0, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->b:Lcom/badlogic/gdx/utils/ObjectSet;
|
|
|
|
iget-object v0, v0, Lcom/badlogic/gdx/utils/ObjectSet;->b:[Ljava/lang/Object;
|
|
|
|
iget v1, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->d:I
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v2, v0, v1
|
|
|
|
:goto_0
|
|
const/4 v0, -0x1
|
|
|
|
.line 511
|
|
iput v0, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->d:I
|
|
|
|
.line 512
|
|
iget-object v0, p0, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->b:Lcom/badlogic/gdx/utils/ObjectSet;
|
|
|
|
iget v1, v0, Lcom/badlogic/gdx/utils/ObjectSet;->a:I
|
|
|
|
add-int/lit8 v1, v1, -0x1
|
|
|
|
iput v1, v0, Lcom/badlogic/gdx/utils/ObjectSet;->a:I
|
|
|
|
return-void
|
|
|
|
.line 503
|
|
: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
|