-
- 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 aDoublyLinkedList.A
DoublyLinkedList.ListNodeis either contained exactly once in exactly oneDoublyLinkedListor contained in noDoublyLinkedList.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DoublyLinkedList.ListNode<V>getNext()Returns the next node in the list structure with respect to this nodeDoublyLinkedList.ListNode<V>getPrev()Returns the previous node in the list structure with respect to this nodeVgetValue()Returns the immutable value thisListNodecontains.
-
-
-
Method Detail
-
getValue
V getValue()
Returns the immutable value thisListNodecontains.- 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
-
-