core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlTreeImpl.java [653:686]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private void visit( LinkedAvlNode<K> node, LinkedAvlNode<K> parentNode, int depth )
    {
        if ( node == null )
        {
            return;
        }

        for ( int i = 0; i < depth; i++ )
        {
            System.out.print( "|  " );
        }

        String type = "";
        if ( node == parentNode.left )
        {
            type = "L";
        }
        else if ( node == parentNode.right )
        {
            type = "R";
        }

        System.out.println( "|--" + node + type );

        if ( node.getRight() != null )
        {
            visit( node.getRight(), node, depth + 1 );
        }

        if ( node.getLeft() != null )
        {
            visit( node.getLeft(), node, depth + 1 );
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



core-avl/src/main/java/org/apache/directory/server/core/avltree/AvlTreeMapImpl.java [869:902]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    private void visit( LinkedAvlMapNode<K, V> node, LinkedAvlMapNode<K, V> parentNode, int depth )
    {
        if ( node == null )
        {
            return;
        }

        for ( int i = 0; i < depth; i++ )
        {
            System.out.print( "|  " );
        }

        String type = "";
        if ( node == parentNode.left )
        {
            type = "L";
        }
        else if ( node == parentNode.right )
        {
            type = "R";
        }

        System.out.println( "|--" + node + type );

        if ( node.getRight() != null )
        {
            visit( node.getRight(), node, depth + 1 );
        }

        if ( node.getLeft() != null )
        {
            visit( node.getLeft(), node, depth + 1 );
        }
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



