Class AbstractLinkedListJava21.Node<E>
java.lang.Object
org.apache.commons.collections4.list.AbstractLinkedListJava21.Node<E>
- Type Parameters:
- E- the type of the node value.
- Enclosing class:
- AbstractLinkedListJava21<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:
- 4.5.0-M3
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected AbstractLinkedListJava21.Node<E> A pointer to the node after this nodeprotected AbstractLinkedListJava21.Node<E> A pointer to the node before this nodeprotected EThe object contained within this node
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedNode()Constructs a new header node.protectedConstructs a new node.protectedNode(AbstractLinkedListJava21.Node<E> previous, AbstractLinkedListJava21.Node<E> next, E value) Constructs a new node.
- 
Method SummaryModifier and TypeMethodDescriptionprotected AbstractLinkedListJava21.Node<E> Gets the next node.protected AbstractLinkedListJava21.Node<E> Gets the previous node.protected EgetValue()Gets the value of the node.protected voidSets the next node.protected voidsetPreviousNode(AbstractLinkedListJava21.Node<E> previous) Sets the previous node.protected voidSets the value of the node.
- 
Field Details- 
previousA pointer to the node before this node
- 
nextA pointer to the node after this node
- 
value
 
- 
- 
Constructor Details- 
Nodeprotected Node()Constructs a new header node.
- 
Node
- 
Nodeprotected Node(AbstractLinkedListJava21.Node<E> previous, AbstractLinkedListJava21.Node<E> next, E value) Constructs a new node.- Parameters:
- previous- the previous node in the list
- next- the next node in the list
- value- the value to store
 
 
- 
- 
Method Details- 
getNextNodeGets the next node.- Returns:
- the next node
- Since:
- 3.1
 
- 
getPreviousNodeGets the previous node.- Returns:
- the previous node
- Since:
- 3.1
 
- 
getValue
- 
setNextNodeSets the next node.- Parameters:
- next- the next node
- Since:
- 3.1
 
- 
setPreviousNodeSets the previous node.- Parameters:
- previous- the previous node
- Since:
- 3.1
 
- 
setValue
 
-