Interface TreeTraverser.InclusionPolicy<T extends Item>

  • Enclosing class:
    TreeTraverser

    public static interface TreeTraverser.InclusionPolicy<T extends Item>
    Inclusion policy to determine which items to include when traversing. There a two predefined inclusion policies:
    • ALL includes all items.
    • LEAVES includes only leave nodes. A leaf node is a node which does not have child nodes.
    • Method Detail

      • include

        boolean include​(T item)
        Call back method to determine whether to include a given item.
        Parameters:
        item - The item under consideration
        Returns:
        true when item should be included. false otherwise.