public class ReferenceList<T>
Specialized linked list to hold weak references or similar stuff. Adding and removing is guaranteed O(1).
public int size()
Gets the number of items currently in this list.
public boolean isEmpty()
Checks if this list is empty.
true is this list is emptypublic io.scanbot.sdk.dispose.ReferenceList.Node<T> add(T value)
Adds a value to this list (at head).
value - Value to addpublic io.scanbot.sdk.dispose.ReferenceList.Node<T> removeLast()
Removes the last added Node.
null if this list is empty.public void remove(io.scanbot.sdk.dispose.ReferenceList.Node<T> node)
Removes the given Node from this list. Multiple removes are prevented.
node - The Node to remove