Class LinkedNode

  • Direct Known Subclasses:
    PendingNode

    public class LinkedNode
    extends Object
    Provides a base class for you to extend when you want object to maintain a doubly linked list to other objects without using a collection class.
    Author:
    chirino
    • Constructor Detail

      • LinkedNode

        public LinkedNode()
    • Method Detail

      • isHeadNode

        public boolean isHeadNode()
      • isTailNode

        public boolean isTailNode()
      • linkAfter

        public LinkedNode linkAfter​(LinkedNode rightHead)
        Parameters:
        rightHead - the node to link after this node.
        Returns:
        this
      • linkBefore

        public LinkedNode linkBefore​(LinkedNode leftHead)
        Parameters:
        leftHead - the node to link after this node.
        Returns:
        this
      • unlink

        public void unlink()
        Removes this node out of the linked list it is chained in.
      • reset

        public void reset()