-
- 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.ListNode
is either contained exactly once in exactly oneDoublyLinkedList
or 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 nodeV
getValue()
Returns the immutable value thisListNode
contains.
-
-
-
Method Detail
-
getValue
V getValue()
Returns the immutable value thisListNode
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
-
-