Class AbstractLinkedList.Node

  • Enclosing class:
    AbstractLinkedList

    protected static class AbstractLinkedList.Node
    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.

    • Constructor Detail

      • Node

        protected Node()
        Constructs a new header node.
      • Node

        protected Node​(Object value)
        Constructs a new node.
        Parameters:
        value - the value to store
    • Method Detail

      • getValue

        protected Object getValue()
        Gets the value of the node.
        Returns:
        the value
        Since:
        Commons Collections 3.1
      • setValue

        protected void setValue​(Object value)
        Sets the value of the node.
        Parameters:
        value - the value
        Since:
        Commons Collections 3.1
      • getPreviousNode

        protected AbstractLinkedList.Node getPreviousNode()
        Gets the previous node.
        Returns:
        the previous node
        Since:
        Commons Collections 3.1
      • setPreviousNode

        protected void setPreviousNode​(AbstractLinkedList.Node previous)
        Sets the previous node.
        Parameters:
        previous - the previous node
        Since:
        Commons Collections 3.1
      • getNextNode

        protected AbstractLinkedList.Node getNextNode()
        Gets the next node.
        Returns:
        the next node
        Since:
        Commons Collections 3.1
      • setNextNode

        protected void setNextNode​(AbstractLinkedList.Node next)
        Sets the next node.
        Parameters:
        next - the next node
        Since:
        Commons Collections 3.1