Package com.globalmentor.model
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
visit(N node)
Visits the given node.
-
-
-
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.
-
-