java.lang.Object
org.jgrapht.util.DoublyLinkedList.ListNodeImpl<V>
- All Implemented Interfaces:
DoublyLinkedList.ListNode<V>
- Enclosing class:
DoublyLinkedList<E>
private static class DoublyLinkedList.ListNodeImpl<V>
extends Object
implements DoublyLinkedList.ListNode<V>
The default
DoublyLinkedList.ListNode
implementation that enables checks and enforcement of a single
container list policy.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DoublyLinkedList
<V> private DoublyLinkedList.ListNodeImpl
<V> private DoublyLinkedList.ListNodeImpl
<V> private final V
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
-
list
-
next
-
prev
-
-
Constructor Details
-
ListNodeImpl
ListNodeImpl(V value) Creates new list node- Parameters:
value
- the value this list node stores
-
-
Method Details
-
toString
-
getValue
Returns the immutable value thisListNode
contains.- Specified by:
getValue
in interfaceDoublyLinkedList.ListNode<V>
- Returns:
- the value this list node contains
-
getNext
Returns the next node in the list structure with respect to this node- Specified by:
getNext
in interfaceDoublyLinkedList.ListNode<V>
- 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- Specified by:
getPrev
in interfaceDoublyLinkedList.ListNode<V>
- Returns:
- the previous node in the list structure with respect to this node
-