42 lines
899 B
Java
42 lines
899 B
Java
import net.runelite.mapping.Export;
|
|
import net.runelite.mapping.Implements;
|
|
import net.runelite.mapping.ObfuscatedName;
|
|
import net.runelite.mapping.ObfuscatedSignature;
|
|
|
|
@ObfuscatedName("gn")
|
|
@Implements("Node")
|
|
public class Node {
|
|
@ObfuscatedName("cm")
|
|
@Export("key")
|
|
public long key;
|
|
@ObfuscatedName("cb")
|
|
@ObfuscatedSignature(
|
|
descriptor = "Lgn;"
|
|
)
|
|
@Export("previous")
|
|
public Node previous;
|
|
@ObfuscatedName("ct")
|
|
@ObfuscatedSignature(
|
|
descriptor = "Lgn;"
|
|
)
|
|
@Export("next")
|
|
public Node next;
|
|
|
|
@ObfuscatedName("fm")
|
|
@Export("remove")
|
|
public void remove() {
|
|
if (this.next != null) { // L: 9
|
|
this.next.previous = this.previous; // L: 10
|
|
this.previous.next = this.next; // L: 11
|
|
this.previous = null; // L: 12
|
|
this.next = null; // L: 13
|
|
}
|
|
} // L: 14
|
|
|
|
@ObfuscatedName("fg")
|
|
@Export("hasNext")
|
|
public boolean hasNext() {
|
|
return this.next != null; // L: 17
|
|
}
|
|
}
|