.class public Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator; .super Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator; .source "OrderedSet.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/badlogic/gdx/utils/OrderedSet; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x9 name = "OrderedSetIterator" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator<", "TT;>;" } .end annotation # instance fields .field private f:Lcom/badlogic/gdx/utils/Array; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/badlogic/gdx/utils/Array<", "TT;>;" } .end annotation .end field # direct methods .method public constructor (Lcom/badlogic/gdx/utils/OrderedSet;)V .locals 0 .annotation system Ldalvik/annotation/Signature; value = { "(", "Lcom/badlogic/gdx/utils/OrderedSet<", "TT;>;)V" } .end annotation .line 123 invoke-direct {p0, p1}, Lcom/badlogic/gdx/utils/ObjectSet$ObjectSetIterator;->(Lcom/badlogic/gdx/utils/ObjectSet;)V .line 124 iget-object p1, p1, Lcom/badlogic/gdx/utils/OrderedSet;->e:Lcom/badlogic/gdx/utils/Array; iput-object p1, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->f:Lcom/badlogic/gdx/utils/Array; return-void .end method # virtual methods .method public a()V .locals 2 const/4 v0, 0x0 .line 128 iput v0, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->c:I .line 129 iget-object v1, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->b:Lcom/badlogic/gdx/utils/ObjectSet; iget v1, v1, Lcom/badlogic/gdx/utils/ObjectSet;->a:I if-lez v1, :cond_0 const/4 v0, 0x1 :cond_0 iput-boolean v0, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->a:Z return-void .end method .method public next()Ljava/lang/Object; .locals 4 .annotation system Ldalvik/annotation/Signature; value = { "()TT;" } .end annotation .line 133 iget-boolean v0, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->a:Z if-eqz v0, :cond_2 .line 134 iget-boolean v0, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->e:Z if-eqz v0, :cond_1 .line 135 iget-object v0, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->f:Lcom/badlogic/gdx/utils/Array; iget v1, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->c:I invoke-virtual {v0, v1}, Lcom/badlogic/gdx/utils/Array;->a(I)Ljava/lang/Object; move-result-object v0 .line 136 iget v1, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->c:I const/4 v2, 0x1 add-int/2addr v1, v2 iput v1, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->c:I .line 137 iget v1, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->c:I iget-object v3, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->b:Lcom/badlogic/gdx/utils/ObjectSet; iget v3, v3, Lcom/badlogic/gdx/utils/ObjectSet;->a:I if-ge v1, v3, :cond_0 goto :goto_0 :cond_0 const/4 v2, 0x0 :goto_0 iput-boolean v2, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->a:Z return-object v0 .line 134 :cond_1 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;->(Ljava/lang/String;)V throw v0 .line 133 :cond_2 new-instance v0, Ljava/util/NoSuchElementException; invoke-direct {v0}, Ljava/util/NoSuchElementException;->()V throw v0 .end method .method public remove()V .locals 3 .line 142 iget v0, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->c:I if-ltz v0, :cond_0 .line 143 iget v0, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->c:I add-int/lit8 v0, v0, -0x1 iput v0, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->c:I .line 144 iget-object v0, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->b:Lcom/badlogic/gdx/utils/ObjectSet; iget-object v1, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->f:Lcom/badlogic/gdx/utils/Array; iget v2, p0, Lcom/badlogic/gdx/utils/OrderedSet$OrderedSetIterator;->c:I invoke-virtual {v1, v2}, Lcom/badlogic/gdx/utils/Array;->a(I)Ljava/lang/Object; move-result-object v1 invoke-virtual {v0, v1}, Lcom/badlogic/gdx/utils/ObjectSet;->b(Ljava/lang/Object;)Z return-void .line 142 :cond_0 new-instance v0, Ljava/lang/IllegalStateException; const-string v1, "next must be called before remove." invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;->(Ljava/lang/String;)V throw v0 .end method