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 Detail

      • visit

        void visit​(@Nullable
                   DATATYPE aStartObject,
                   boolean bInvokeOnStartObject)
        Visit all objects, starting specified one.
        Parameters:
        aStartObject - The object to start from. May be null to indicate the hierarchy root.
        bInvokeOnStartObject - true to indicate that the callback should also be invoked on the first element, false to indicate that the callback should only be invoked for the children of the passed element.