@Immutable public final class MicroVisitor extends Object
IMicroNode
with a callback.| Modifier and Type | Method and Description |
|---|---|
static void |
visit(IMicroNode aNode,
com.helger.commons.hierarchy.visit.IHierarchyVisitorCallback<? super IMicroNode> aCallback)
Iterate the passed node and invoke the callback for all child nodes.
|
static <T extends IMicroNode> |
visit(T aNode,
com.helger.commons.hierarchy.IChildrenProvider<T> aChildrenProvider,
com.helger.commons.hierarchy.visit.IHierarchyVisitorCallback<? super T> aCallback)
Iterate the passed node and invoke the callback for all child nodes.
|
public static void visit(@Nonnull IMicroNode aNode, @Nonnull com.helger.commons.hierarchy.visit.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 com.helger.commons.hierarchy.IChildrenProvider<T> aChildrenProvider, @Nonnull com.helger.commons.hierarchy.visit.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–2017 Philip Helger. All rights reserved.