chore: rev 190
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("lw")
|
||||
@ObfuscatedName("ln")
|
||||
@Implements("IterableNodeHashTableIterator")
|
||||
public class IterableNodeHashTableIterator implements Iterator {
|
||||
@ObfuscatedName("x")
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lln;"
|
||||
signature = "Llf;"
|
||||
)
|
||||
@Export("hashTable")
|
||||
IterableNodeHashTable hashTable;
|
||||
@ObfuscatedName("m")
|
||||
@ObfuscatedName("o")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lga;"
|
||||
signature = "Lgr;"
|
||||
)
|
||||
@Export("head")
|
||||
Node head;
|
||||
@ObfuscatedName("k")
|
||||
@ObfuscatedName("q")
|
||||
@Export("index")
|
||||
int index;
|
||||
@ObfuscatedName("d")
|
||||
@ObfuscatedName("j")
|
||||
@ObfuscatedSignature(
|
||||
signature = "Lga;"
|
||||
signature = "Lgr;"
|
||||
)
|
||||
@Export("last")
|
||||
Node last;
|
||||
|
||||
@ObfuscatedSignature(
|
||||
signature = "(Lln;)V"
|
||||
signature = "(Llf;)V"
|
||||
)
|
||||
IterableNodeHashTableIterator(IterableNodeHashTable var1) {
|
||||
this.last = null;
|
||||
@@ -38,7 +38,7 @@ public class IterableNodeHashTableIterator implements Iterator {
|
||||
this.start();
|
||||
}
|
||||
|
||||
@ObfuscatedName("q")
|
||||
@ObfuscatedName("g")
|
||||
@Export("start")
|
||||
void start() {
|
||||
this.head = this.hashTable.buckets[0].previous;
|
||||
@@ -46,6 +46,23 @@ public class IterableNodeHashTableIterator implements Iterator {
|
||||
this.last = null;
|
||||
}
|
||||
|
||||
public boolean hasNext() {
|
||||
if (this.hashTable.buckets[this.index - 1] != this.head) {
|
||||
return true;
|
||||
} else {
|
||||
while (this.index < this.hashTable.size) {
|
||||
if (this.hashTable.buckets[this.index++].previous != this.hashTable.buckets[this.index - 1]) {
|
||||
this.head = this.hashTable.buckets[this.index - 1].previous;
|
||||
return true;
|
||||
}
|
||||
|
||||
this.head = this.hashTable.buckets[this.index - 1];
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public void remove() {
|
||||
if (this.last == null) {
|
||||
throw new IllegalStateException();
|
||||
@@ -76,21 +93,4 @@ public class IterableNodeHashTableIterator implements Iterator {
|
||||
return var1;
|
||||
}
|
||||
}
|
||||
|
||||
public boolean hasNext() {
|
||||
if (this.hashTable.buckets[this.index - 1] != this.head) {
|
||||
return true;
|
||||
} else {
|
||||
while (this.index < this.hashTable.size) {
|
||||
if (this.hashTable.buckets[this.index++].previous != this.hashTable.buckets[this.index - 1]) {
|
||||
this.head = this.hashTable.buckets[this.index - 1].previous;
|
||||
return true;
|
||||
}
|
||||
|
||||
this.head = this.hashTable.buckets[this.index - 1];
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user