Class AbstractLinkedList.Node<E>
java.lang.Object
org.apache.commons.collections4.list.AbstractLinkedList.Node<E>
- Type Parameters:
E- The node value type.
- Enclosing class:
AbstractLinkedList<E>
A node within the linked list.
From Commons Collections 3.1, all access to the value property
is via the methods on this class.
- Since:
- 3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractLinkedList.Node<E> A pointer to the node after this nodeprotected AbstractLinkedList.Node<E> A pointer to the node before this nodeprotected EThe object contained within this node -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNode()Constructs a new header node.protectedConstructs a new node.protectedNode(AbstractLinkedList.Node<E> previous, AbstractLinkedList.Node<E> next, E value) Constructs a new node. -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractLinkedList.Node<E> Gets the next node.protected AbstractLinkedList.Node<E> Gets the previous node.protected EgetValue()Gets the value of the node.protected voidsetNextNode(AbstractLinkedList.Node<E> next) Sets the next node.protected voidsetPreviousNode(AbstractLinkedList.Node<E> previous) Sets the previous node.protected voidSets the value of the node.
-
Field Details
-
previous
A pointer to the node before this node -
next
A pointer to the node after this node -
value
-
-
Constructor Details
-
Node
protected Node()Constructs a new header node. -
Node
-
Node
Constructs a new node.- Parameters:
previous- the previous node in the listnext- the next node in the listvalue- the value to store
-
-
Method Details
-
getNextNode
Gets the next node.- Returns:
- the next node
- Since:
- 3.1
-
getPreviousNode
Gets the previous node.- Returns:
- the previous node
- Since:
- 3.1
-
getValue
-
setNextNode
Sets the next node.- Parameters:
next- the next node- Since:
- 3.1
-
setPreviousNode
Sets the previous node.- Parameters:
previous- the previous node- Since:
- 3.1
-
setValue
-