public static interface TreeTraverser.InclusionPolicy<T extends Item>
| Modifier and Type | Field and Description | 
|---|---|
| static TreeTraverser.InclusionPolicy<Item> | ALLThis inclusions policy includes all items. | 
| static TreeTraverser.InclusionPolicy<Node> | LEAVESThis inclusion policy includes leave nodes only. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | include(T item)Call back method to determine whether to include a given item. | 
static final TreeTraverser.InclusionPolicy<Item> ALL
static final TreeTraverser.InclusionPolicy<Node> LEAVES
boolean include(T item)
item - The item under considerationtrue when item should be included.
         false otherwise.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.