Interface ITreeNode<T>

  • Type Parameters:
    T - the type of the payload
    All Known Implementing Classes:
    TreeNode

    public interface ITreeNode<T>
    A node in a tree.
    • Method Detail

      • getParent

        ITreeNode<T> getParent()
        Returns:
        the parent of the tree, or null if it is the root node
      • getChildren

        List<ITreeNode<T>> getChildren()
        Returns:
        the children of the the node, or the empty list if there are no children
      • getValue

        T getValue()
        Returns:
        the payload of the tree node
      • accept

        void accept​(ITreeVisitor<T> visitor)
        Parameters:
        visitor - a tree node visitor