Interface Visitor<N>

  • Type Parameters:
    N - The type of node being visited.

    public interface Visitor<N>
    Represents a visitor that can visit each node during traversal (e.g. visiting every node in a tree).
    Author:
    Garret Wilson
    • Method Detail

      • visit

        boolean visit​(N node)
        Visits the given node.
        Parameters:
        node - The node being visited.
        Returns:
        true if traversal should continue to other nodes.