Interface AvlUtil.AvlNodeVisitor<TNode extends AvlUtil.AvlNode>

Enclosing class:
AvlUtil

@Private public static interface AvlUtil.AvlNodeVisitor<TNode extends AvlUtil.AvlNode>
Visitor that allows to traverse a set of AvlNodes. If you don't like the callback style of the visitor you can always use the AvlTreeIterator.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Visitor
  • Method Details

    • visitNode

      boolean visitNode(TNode node)
      Visitor
      Parameters:
      node - the node that we are currently visiting
      Returns:
      false to stop the iteration. true to continue.