Interface DoublyLinkedList.ListNode<V>

  • Type Parameters:
    V - the type of the element stored in this node
    Enclosing class:
    DoublyLinkedList<E>

    public static interface DoublyLinkedList.ListNode<V>
    Container for the elements stored in a DoublyLinkedList.

    A DoublyLinkedList.ListNode is either contained exactly once in exactly one DoublyLinkedList or contained in no DoublyLinkedList.

    • Method Detail

      • getValue

        V getValue()
        Returns the immutable value this ListNode contains.
        Returns:
        the value this list node contains
      • getNext

        DoublyLinkedList.ListNode<V> getNext()
        Returns the next node in the list structure with respect to this node
        Returns:
        the next node in the list structure with respect to this node
      • getPrev

        DoublyLinkedList.ListNode<V> getPrev()
        Returns the previous node in the list structure with respect to this node
        Returns:
        the previous node in the list structure with respect to this node