- 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>
public abstract static class DoublyLinkedList.ListNode<V> extends Object
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 Concrete Methods Modifier and Type Method Description DoublyLinkedList<V>getList()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.StringtoString()Returns the string representation of this list node.
-
-
-
Method Detail
-
getValue
public abstract V getValue()
Returns the immutable value thisListNodecontains.- Returns:
- the value this list node contains
-
getNext
public abstract 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
public abstract 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
-
getList
public DoublyLinkedList<V> 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
-
-