Class DoublyLinkedList.Entry<E extends 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 java.lang.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 Summary

      Constructors 
      Constructor Description
      Entry()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean unlink()
      Removes this element from its list.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Entry

        public Entry()
    • Method Detail

      • unlink

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