project: rev 200

This commit is contained in:
Owain van Brakel
2021-10-06 13:56:56 +02:00
parent 9f1d58c2a6
commit 5e9375bc8b
429 changed files with 45223 additions and 44897 deletions

View File

@@ -4,27 +4,27 @@ import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("np")
@ObfuscatedName("nf")
@Implements("IterableNodeHashTableIterator")
public class IterableNodeHashTableIterator implements Iterator {
@ObfuscatedName("n")
@ObfuscatedName("l")
@ObfuscatedSignature(
descriptor = "Lnz;"
)
@Export("hashTable")
IterableNodeHashTable hashTable;
@ObfuscatedName("c")
@ObfuscatedName("q")
@ObfuscatedSignature(
descriptor = "Lnr;"
descriptor = "Lnv;"
)
@Export("head")
Node head;
@ObfuscatedName("m")
@ObfuscatedName("f")
@Export("index")
int index;
@ObfuscatedName("k")
@ObfuscatedName("j")
@ObfuscatedSignature(
descriptor = "Lnr;"
descriptor = "Lnv;"
)
@Export("last")
Node last;
@@ -38,7 +38,7 @@ public class IterableNodeHashTableIterator implements Iterator {
this.start();
}
@ObfuscatedName("n")
@ObfuscatedName("l")
@Export("start")
void start() {
this.head = this.hashTable.buckets[0].previous;
@@ -46,32 +46,6 @@ 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();
} else {
this.last.remove();
this.last = null;
}
}
public Object next() {
Node var1;
if (this.hashTable.buckets[this.index - 1] != this.head) {
@@ -93,4 +67,26 @@ 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;
}
}
public void remove() {
this.last.remove();
this.last = null;
}
}