project: uwu (197)

This commit is contained in:
ThatGamerBlue
2021-06-16 11:24:56 +01:00
parent 6278fd9835
commit fbbafc7285
437 changed files with 52595 additions and 52141 deletions

View File

@@ -4,33 +4,33 @@ import net.runelite.mapping.Implements;
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName("mj")
@ObfuscatedName("mp")
@Implements("IterableNodeHashTableIterator")
public class IterableNodeHashTableIterator implements Iterator {
@ObfuscatedName("v")
@ObfuscatedName("f")
@ObfuscatedSignature(
descriptor = "Lmr;"
descriptor = "Lmo;"
)
@Export("hashTable")
IterableNodeHashTable hashTable;
@ObfuscatedName("n")
@ObfuscatedName("e")
@ObfuscatedSignature(
descriptor = "Lmw;"
descriptor = "Lmf;"
)
@Export("head")
Node head;
@ObfuscatedName("f")
@ObfuscatedName("v")
@Export("index")
int index;
@ObfuscatedName("y")
@ObfuscatedSignature(
descriptor = "Lmw;"
descriptor = "Lmf;"
)
@Export("last")
Node last;
@ObfuscatedSignature(
descriptor = "(Lmr;)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("v")
@ObfuscatedName("f")
@Export("start")
void start() {
this.head = this.hashTable.buckets[0].previous; // L: 18
@@ -46,32 +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();
} else {
this.last.remove(); // L: 57
this.last = null; // L: 58
}
} // L: 59
public Object next() {
Node var1;
if (this.hashTable.buckets[this.index - 1] != this.head) { // L: 24
@@ -93,4 +67,30 @@ public class IterableNodeHashTableIterator implements Iterator {
return var1; // L: 35
}
}
public void remove() {
if (this.last == null) { // L: 56
throw new IllegalStateException();
} else {
this.last.remove(); // L: 57
this.last = null; // L: 58
}
} // L: 59
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
}
}
}