protected static class AbstractLinkedList.Node
extends java.lang.Object
From Commons Collections 3.1, all access to the value
property
is via the methods on this class.
Modifier and Type | Field and Description |
---|---|
protected AbstractLinkedList.Node |
next
A pointer to the node after this node
|
protected AbstractLinkedList.Node |
previous
A pointer to the node before this node
|
protected java.lang.Object |
value
The object contained within this node
|
Modifier | Constructor and Description |
---|---|
protected |
Node()
Constructs a new header node.
|
protected |
Node(AbstractLinkedList.Node previous,
AbstractLinkedList.Node next,
java.lang.Object value)
Constructs a new node.
|
protected |
Node(java.lang.Object value)
Constructs a new node.
|
Modifier and Type | Method and Description |
---|---|
protected AbstractLinkedList.Node |
getNextNode()
Gets the next node.
|
protected AbstractLinkedList.Node |
getPreviousNode()
Gets the previous node.
|
protected java.lang.Object |
getValue()
Gets the value of the node.
|
protected void |
setNextNode(AbstractLinkedList.Node next)
Sets the next node.
|
protected void |
setPreviousNode(AbstractLinkedList.Node previous)
Sets the previous node.
|
protected void |
setValue(java.lang.Object value)
Sets the value of the node.
|
protected AbstractLinkedList.Node previous
protected AbstractLinkedList.Node next
protected java.lang.Object value
protected Node()
protected Node(java.lang.Object value)
value
- the value to storeprotected Node(AbstractLinkedList.Node previous, AbstractLinkedList.Node next, java.lang.Object value)
previous
- the previous node in the listnext
- the next node in the listvalue
- the value to storeprotected java.lang.Object getValue()
protected void setValue(java.lang.Object value)
value
- the valueprotected AbstractLinkedList.Node getPreviousNode()
protected void setPreviousNode(AbstractLinkedList.Node previous)
previous
- the previous nodeprotected AbstractLinkedList.Node getNextNode()
protected void setNextNode(AbstractLinkedList.Node next)
next
- the next nodeCopyright © 2001-2024 Apache Software Foundation. All Rights Reserved.