public static void iterateChildrenNonBreakable (@Nonnull final IHCNode aNode,
                                                  @Nonnull final IHCIteratorNonBreakableCallback aCallback)
  {
    ValueEnforcer.notNull (aNode, "node");
    ValueEnforcer.notNull (aCallback, "callback");

    final ICommonsList <IHCNode> aParentNodes = new CommonsArrayList <> ();
    final ICommonsList <IHCNode> aNodes = new CommonsArrayList <> ();
    if (aNode.hasChildren ())
      for (final IHCNode aChild : aNode.getChildren ())
      {
        // Remember nodes for later processing
        aParentNodes.add (aNode);
        aNodes.add (aChild);
      }
    _iterateTreeNonBreakable (aParentNodes, aNodes, aCallback);
  }
public static void iterateChildrenNonBreakable ( @ Nonnull final IHCNode aNode , @ Nonnull final IHCIteratorNonBreakableCallback aCallback ) { ValueEnforcer . notNull ( aNode , "node" ) ; ValueEnforcer . notNull ( aCallback , "callback" ) ; final ICommonsList < IHCNode > aParentNodes = new CommonsArrayList < > ( ) ; final ICommonsList < IHCNode > aNodes = new CommonsArrayList < > ( ) ; if ( aNode . hasChildren ( ) ) for ( final IHCNode aChild : aNode . getChildren ( ) ) { aParentNodes . add ( aNode ) ; aNodes . add ( aChild ) ; } _iterateTreeNonBreakable ( aParentNodes , aNodes , aCallback ) ; }
Recursively iterate all child nodes of the passed node.

@param aNode
The node who's children should be iterated.
@param aCallback
The callback to be invoked on every child