rev 196
This commit is contained in:
@@ -4,33 +4,33 @@ import net.runelite.mapping.Implements;
|
||||
import net.runelite.mapping.ObfuscatedName;
|
||||
import net.runelite.mapping.ObfuscatedSignature;
|
||||
|
||||
@ObfuscatedName("mq")
|
||||
@ObfuscatedName("mu")
|
||||
@Implements("IterableNodeHashTableIterator")
|
||||
public class IterableNodeHashTableIterator implements Iterator {
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("h")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lme;"
|
||||
descriptor = "Lmo;"
|
||||
)
|
||||
@Export("hashTable")
|
||||
IterableNodeHashTable hashTable;
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedName("c")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lmh;"
|
||||
descriptor = "Lmd;"
|
||||
)
|
||||
@Export("head")
|
||||
Node head;
|
||||
@ObfuscatedName("u")
|
||||
@ObfuscatedName("o")
|
||||
@Export("index")
|
||||
int index;
|
||||
@ObfuscatedName("p")
|
||||
@ObfuscatedName("g")
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "Lmh;"
|
||||
descriptor = "Lmd;"
|
||||
)
|
||||
@Export("last")
|
||||
Node last;
|
||||
|
||||
@ObfuscatedSignature(
|
||||
descriptor = "(Lme;)V"
|
||||
descriptor = "(Lmo;)V"
|
||||
)
|
||||
IterableNodeHashTableIterator(IterableNodeHashTable var1) {
|
||||
this.last = null; // L: 10
|
||||
@@ -38,7 +38,7 @@ public class IterableNodeHashTableIterator implements Iterator {
|
||||
this.start(); // L: 14
|
||||
} // L: 15
|
||||
|
||||
@ObfuscatedName("f")
|
||||
@ObfuscatedName("h")
|
||||
@Export("start")
|
||||
void start() {
|
||||
this.head = this.hashTable.buckets[0].previous; // L: 18
|
||||
@@ -46,23 +46,6 @@ public class IterableNodeHashTableIterator implements Iterator {
|
||||
this.last = null; // L: 20
|
||||
} // L: 21
|
||||
|
||||
public boolean hasNext() {
|
||||
if (this.hashTable.buckets[this.index - 1] != this.head) { // L: 42
|
||||
return true;
|
||||
} else {
|
||||
while (this.index < this.hashTable.size) { // L: 43
|
||||
if (this.hashTable.buckets[this.index++].previous != this.hashTable.buckets[this.index - 1]) { // L: 44
|
||||
this.head = this.hashTable.buckets[this.index - 1].previous; // L: 45
|
||||
return true; // L: 46
|
||||
}
|
||||
|
||||
this.head = this.hashTable.buckets[this.index - 1]; // L: 49
|
||||
}
|
||||
|
||||
return false; // L: 52
|
||||
}
|
||||
}
|
||||
|
||||
public void remove() {
|
||||
if (this.last == null) { // L: 56
|
||||
throw new IllegalStateException();
|
||||
@@ -93,4 +76,21 @@ public class IterableNodeHashTableIterator implements Iterator {
|
||||
return var1; // L: 35
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasNext() {
|
||||
if (this.hashTable.buckets[this.index - 1] != this.head) { // L: 42
|
||||
return true;
|
||||
} else {
|
||||
while (this.index < this.hashTable.size) { // L: 43
|
||||
if (this.hashTable.buckets[this.index++].previous != this.hashTable.buckets[this.index - 1]) { // L: 44
|
||||
this.head = this.hashTable.buckets[this.index - 1].previous; // L: 45
|
||||
return true; // L: 46
|
||||
}
|
||||
|
||||
this.head = this.hashTable.buckets[this.index - 1]; // L: 49
|
||||
}
|
||||
|
||||
return false; // L: 52
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user