Class DoublyLinkedList.Entry<E extends DoublyLinkedList.Entry<E>>

java.lang.Object
com.linkedin.alpini.base.misc.DoublyLinkedList.Entry<E>
Type Parameters:
E -
Direct Known Subclasses:
TimeoutProcessor.TimeoutFuture
Enclosing class:
DoublyLinkedList<E extends DoublyLinkedList.Entry<E>>

public static class DoublyLinkedList.Entry<E extends DoublyLinkedList.Entry<E>> extends Object
In order to maintain a doubly-linked list, each element needs to establish links to its adjacent elements. To do this, we are storing those references in the element. This does mean that each element may only be contained within one list.
  • Constructor Details

    • Entry

      public Entry()
  • Method Details

    • unlink

      public boolean unlink()
      Removes this element from its list. Equivalent to calling list.remove(this)
      Returns:
      true if successful