Package org.apache.commons.collections4.list

# 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>`

protected static class AbstractLinkedListJava21.Node<E> extends Object
A node within the linked list.

From Commons Collections 3.1, all access to the `value` property is via the methods on this class.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `protected AbstractLinkedListJava21.Node<E>`
  `next`
  A pointer to the node after this node
  `protected AbstractLinkedListJava21.Node<E>`
  `previous`
  A pointer to the node before this node
  `protected E`
  `value`
  The object contained within this node

- ## Constructor Summary

  Constructors
  Modifier
  Constructor
  Description
  `protected`
  `Node()`
  Constructs a new header node.
  `protected`
  `Node(E value)`
  Constructs a new node.
  `protected`
  `Node(AbstractLinkedListJava21.Node<E> previous, AbstractLinkedListJava21.Node<E> next, E value)`
  Constructs a new node.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected AbstractLinkedListJava21.Node<E>`
  `getNextNode()`
  Gets the next node.
  `protected AbstractLinkedListJava21.Node<E>`
  `getPreviousNode()`
  Gets the previous node.
  `protected E`
  `getValue()`
  Gets the value of the node.
  `protected void`
  `setNextNode(AbstractLinkedListJava21.Node<E> next)`
  Sets the next node.
  `protected void`
  `setPreviousNode(AbstractLinkedListJava21.Node<E> previous)`
  Sets the previous node.
  `protected void`
  `setValue(E value)`
  Sets the value of the node.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### previous

    protected AbstractLinkedListJava21.Node<E> previous
    A pointer to the node before this node

  - ### next

    protected AbstractLinkedListJava21.Node<E> next
    A pointer to the node after this node

  - ### value

    protected E value
    The object contained within this node

- ## Constructor Details

  - ### Node

    protected Node()
    Constructs a new header node.

  - ### Node

    protected Node(E value)
    Constructs a new node.
    Parameters:
      `value` - The value to store

  - ### Node

    protected 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

  - ### getNextNode

    protected AbstractLinkedListJava21.Node<E> getNextNode()
    Gets the next node.
    Returns:
      The next node
    Since:
      3.1

  - ### getPreviousNode

    protected AbstractLinkedListJava21.Node<E> getPreviousNode()
    Gets the previous node.
    Returns:
      The previous node
    Since:
      3.1

  - ### getValue

    protected E getValue()
    Gets the value of the node.
    Returns:
      The value
    Since:
      3.1

  - ### setNextNode

    protected void setNextNode(AbstractLinkedListJava21.Node<E> next)
    Sets the next node.
    Parameters:
      `next` - The next node
    Since:
      3.1

  - ### setPreviousNode

    protected void setPreviousNode(AbstractLinkedListJava21.Node<E> previous)
    Sets the previous node.
    Parameters:
      `previous` - The previous node
    Since:
      3.1

  - ### setValue

    protected void setValue(E value)
    Sets the value of the node.
    Parameters:
      `value` - The value
    Since:
      3.1