java.lang.Object
org.jgrapht.util.DoublyLinkedList.ListNode<V>
- Type Parameters:
V- the type of the element stored in this node
- Enclosing class:
DoublyLinkedList<E>
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 TypeMethodDescriptiongetList()Returns the list that this node is a member of.abstract DoublyLinkedList.ListNode<V> getNext()Returns the next node in the list structure with respect to this nodeabstract DoublyLinkedList.ListNode<V> getPrev()Returns the previous node in the list structure with respect to this nodeabstract VgetValue()Returns the immutable value thisListNodecontains.toString()Returns the string representation of this list node.
-
Method Details
-
getValue
Returns the immutable value thisListNodecontains.- 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
-
getList
Returns the list that this node is a member of.- Returns:
- the list that this node is a member of
- Since:
- 1.5.3
-
toString
Returns the string representation of this list node.
-