Interface TreeTraverser.InclusionPolicy<T extends Item>
-
- Enclosing class:
- TreeTraverser
public static interface TreeTraverser.InclusionPolicy<T extends Item>
-
-
Field Summary
Fields Modifier and Type Field Description static TreeTraverser.InclusionPolicy<Item>
ALL
This inclusions policy includes all items.static TreeTraverser.InclusionPolicy<Node>
LEAVES
This inclusion policy includes leave nodes only.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
include(T item)
Call back method to determine whether to include a given item.
-
-
-
Field Detail
-
ALL
static final TreeTraverser.InclusionPolicy<Item> ALL
This inclusions policy includes all items.
-
LEAVES
static final TreeTraverser.InclusionPolicy<Node> LEAVES
This inclusion policy includes leave nodes only. 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
whenitem
should be included.false
otherwise.
-
-