Interface IHierarchyVisitor<DATATYPE>
-
- Type Parameters:
DATATYPE- The data type to be visited
- All Known Implementing Classes:
ChildrenProviderHierarchyVisitor
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface IHierarchyVisitor<DATATYPE>
Visitor interface- Author:
- Philip Helger
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidvisit(DATATYPE aStartObject, boolean bInvokeOnStartObject)Visit all objects, starting specified one.
-
-
-
Method Detail
-
visit
void visit(@Nullable DATATYPE aStartObject, boolean bInvokeOnStartObject)
Visit all objects, starting specified one.- Parameters:
aStartObject- The object to start from. May benullto indicate the hierarchy root.bInvokeOnStartObject-trueto indicate that the callback should also be invoked on the first element,falseto indicate that the callback should only be invoked for the children of the passed element.
-
-