Interface TreeTraverser.InclusionPolicy<T extends Item>

  • Enclosing class:

    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.
        item - The item under consideration
        true when item should be included. false otherwise.