Interface TreeNode.NodeTraversal<T>

  • Type Parameters:
    T - node label type
    All Superinterfaces:
    Iterable<TreeNode<T>>
    Enclosing interface:
    TreeNode<T>

    public static interface TreeNode.NodeTraversal<T>
    extends Iterable<TreeNode<T>>
    Interface defining a tree node traversal. A traversal is an iteration over the nodes of the tree.
    • Method Detail

      • labels

        Iterable<T> labels()
        Gets a transformed version of this traversal that iterates over the labels instead of the nodes.
        Returns:
        an iterable over the labels