/**
 *  Interface for NodeVisitor
 *  @author Alyce Brady
 *  Creation Date: Fall 2000
 *  Modified by Alyce Brady in Fall 2025 to use generics
 *
 *  This interface is useful for traversing through trees.
 */
public interface NodeVisitor<T>
{
    /** Performs an action on the data passed in as a parameter (the
     *  data from a tree node).
     *      @param data   the data value from the tree node on which to act
     */
    public void visit(T data);

}
