project: Rev update

This commit is contained in:
Owain van Brakel
2019-11-28 16:31:53 +01:00
parent 34f8560da9
commit 74726ae17a
343 changed files with 41411 additions and 41094 deletions

View File

@@ -7,30 +7,30 @@ import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("ll")
@Implements("IterableNodeHashTableIterator")
public class IterableNodeHashTableIterator implements Iterator {
@ObfuscatedName("a")
@ObfuscatedName("u")
@ObfuscatedSignature(
signature = "Llr;"
signature = "Llb;"
)
@Export("hashTable")
IterableNodeHashTable hashTable;
@ObfuscatedName("t")
@ObfuscatedName("f")
@ObfuscatedSignature(
signature = "Lfd;"
signature = "Lfb;"
)
@Export("head")
Node head;
@ObfuscatedName("n")
@ObfuscatedName("b")
@Export("index")
int index;
@ObfuscatedName("q")
@ObfuscatedName("g")
@ObfuscatedSignature(
signature = "Lfd;"
signature = "Lfb;"
)
@Export("last")
Node last;
@ObfuscatedSignature(
signature = "(Llr;)V"
signature = "(Llb;)V"
)
IterableNodeHashTableIterator(IterableNodeHashTable var1) {
this.last = null;
@@ -38,7 +38,7 @@ public class IterableNodeHashTableIterator implements Iterator {
this.start();
}
@ObfuscatedName("d")
@ObfuscatedName("y")
@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 Object next() {
Node var1;
if (this.hashTable.buckets[this.index - 1] != this.head) {
@@ -68,23 +85,6 @@ public class IterableNodeHashTableIterator implements Iterator {
}
}
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();