Interface IHCIteratorCallback

  • All Superinterfaces:
    com.helger.commons.callback.ICallback
    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 IHCIteratorCallback
    extends com.helger.commons.callback.ICallback
    Callback interface to be used when iterating an HC tree.
    Author:
    Philip Helger
    • Method Detail

      • call

        @Nonnull
        com.helger.commons.state.EContinue call​(@Nullable
                                                IHCNode aParentNode,
                                                @Nonnull
                                                IHCNode aChildNode)
        Callback method
        Parameters:
        aParentNode - Optional parent node. May be null for the initial element.
        aChildNode - The current child node. Never null.
        Returns:
        EContinue.BREAK to break iteration and EContinue.CONTINUE to continue iteration.