Class RecyclingLinkedList.Node

    • Constructor Detail

      • 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 Detail

      • 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