114 lines
2.8 KiB
Smali
114 lines
2.8 KiB
Smali
.class public Lcom/esotericsoftware/kryo/util/IntMap$Keys;
|
|
.super Lcom/esotericsoftware/kryo/util/IntMap$MapIterator;
|
|
.source "IntMap.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/esotericsoftware/kryo/util/IntMap;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x9
|
|
name = "Keys"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/esotericsoftware/kryo/util/IntMap;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/esotericsoftware/kryo/util/IntMap$MapIterator;-><init>(Lcom/esotericsoftware/kryo/util/IntMap;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public next()I
|
|
.locals 2
|
|
|
|
iget-boolean v0, p0, Lcom/esotericsoftware/kryo/util/IntMap$MapIterator;->hasNext:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
iget v0, p0, Lcom/esotericsoftware/kryo/util/IntMap$MapIterator;->nextIndex:I
|
|
|
|
const/4 v1, -0x1
|
|
|
|
if-ne v0, v1, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
iget-object v1, p0, Lcom/esotericsoftware/kryo/util/IntMap$MapIterator;->map:Lcom/esotericsoftware/kryo/util/IntMap;
|
|
|
|
iget-object v1, v1, Lcom/esotericsoftware/kryo/util/IntMap;->keyTable:[I
|
|
|
|
aget v0, v1, v0
|
|
|
|
:goto_0
|
|
iget v1, p0, Lcom/esotericsoftware/kryo/util/IntMap$MapIterator;->nextIndex:I
|
|
|
|
iput v1, p0, Lcom/esotericsoftware/kryo/util/IntMap$MapIterator;->currentIndex:I
|
|
|
|
invoke-virtual {p0}, Lcom/esotericsoftware/kryo/util/IntMap$MapIterator;->findNextIndex()V
|
|
|
|
return v0
|
|
|
|
:cond_1
|
|
new-instance v0, Ljava/util/NoSuchElementException;
|
|
|
|
invoke-direct {v0}, Ljava/util/NoSuchElementException;-><init>()V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public bridge synthetic remove()V
|
|
.locals 0
|
|
|
|
invoke-super {p0}, Lcom/esotericsoftware/kryo/util/IntMap$MapIterator;->remove()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public bridge synthetic reset()V
|
|
.locals 0
|
|
|
|
invoke-super {p0}, Lcom/esotericsoftware/kryo/util/IntMap$MapIterator;->reset()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public toArray()Lcom/esotericsoftware/kryo/util/IntArray;
|
|
.locals 3
|
|
|
|
new-instance v0, Lcom/esotericsoftware/kryo/util/IntArray;
|
|
|
|
iget-object v1, p0, Lcom/esotericsoftware/kryo/util/IntMap$MapIterator;->map:Lcom/esotericsoftware/kryo/util/IntMap;
|
|
|
|
iget v1, v1, Lcom/esotericsoftware/kryo/util/IntMap;->size:I
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-direct {v0, v2, v1}, Lcom/esotericsoftware/kryo/util/IntArray;-><init>(ZI)V
|
|
|
|
:goto_0
|
|
iget-boolean v1, p0, Lcom/esotericsoftware/kryo/util/IntMap$MapIterator;->hasNext:Z
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
invoke-virtual {p0}, Lcom/esotericsoftware/kryo/util/IntMap$Keys;->next()I
|
|
|
|
move-result v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/esotericsoftware/kryo/util/IntArray;->add(I)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
return-object v0
|
|
.end method
|