com.springsource.util.common
Interface Tree.TreeVisitor<V>
- Type Parameters:
V - type of values in tree nodes
- Enclosing interface:
- Tree<V>
public static interface Tree.TreeVisitor<V>
Tree.TreeVisitor is an interface used to visit a tree and, at the option of the visitor, its children and so
on recursively.
Concurrent Semantics
Implementations of this interface should be thread safe when used with a thread safe Tree
implementation.
visit
boolean visit(Tree<V> tree)
- Visits the given
Tree. The return value determines whether or not any children of the given tree are
visited.
- Parameters:
tree - a Tree
- Returns:
true if and only if the children of the given tree should be visited.