|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Field Summary | |
---|---|
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 | |
---|---|
boolean |
include(T item)
Call back method to determine whether to include a given item. |
Field Detail |
---|
static final TreeTraverser.InclusionPolicy<Item> ALL
static final TreeTraverser.InclusionPolicy<Node> LEAVES
Method Detail |
---|
boolean include(T item)
item
- The item under consideration
true
when item
should be included.
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |