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 Summary

    Modifier and Type
    Method
    Description
    Returns the next node in the list structure with respect to this node
    Returns the previous node in the list structure with respect to this node
    Returns the immutable value this ListNode contains.
  • Method Details

    • getValue

      V getValue()
      Returns the immutable value this ListNode contains.
      Returns:
      the value this list node contains
    • 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

      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