Class RecyclingLinkedList.Node

All Implemented Interfaces:
Serializable, Cloneable
Enclosing class:
RecyclingLinkedList

protected class RecyclingLinkedList.Node extends SafeLinkedList.Node
A Node in the List. Nodes are doubly-linked and store a value.
See Also:
  • Constructor Details

    • Node

      public Node()
      Construct a blank Node.
    • Node

      public Node(Object o)
      Construct a Node with a value.
      Parameters:
      o - the value to store in the Node
  • Method Details

    • discard

      protected Object discard()
      Delink this Node and discard its value.
      Overrides:
      discard in class SafeLinkedList.Node
      Returns:
      the value of this Node before it was discarded