@Immutable public final class MicroVisitor extends Object
IMicroNode
with a callback.| Modifier and Type | Method and Description |
|---|---|
static void |
visit(IMicroNode aNode,
IHierarchyVisitorCallback<? super IMicroNode> aCallback)
Iterate the passed node and invoke the callback for all child nodes.
|
static <T extends IMicroNode> |
visit(T aNode,
IChildrenProvider<T> aChildrenProvider,
IHierarchyVisitorCallback<? super T> aCallback)
Iterate the passed node and invoke the callback for all child nodes.
|
public static void visit(@Nonnull IMicroNode aNode, @Nonnull IHierarchyVisitorCallback<? super IMicroNode> aCallback)
aNode - The node to iterate. May not be null.aCallback - The callback to call. May not be null.public static <T extends IMicroNode> void visit(@Nonnull T aNode, @Nonnull IChildrenProvider<T> aChildrenProvider, @Nonnull IHierarchyVisitorCallback<? super T> aCallback)
T - The node type to be visitedaNode - The node to iterate. May not be null.aChildrenProvider - The child resolver to use. May not be null.aCallback - The callback to call. May not be null.Copyright © 2014–2015 Philip Helger. All rights reserved.