Interface JOTreeNodeMapFunctionType<A,T,B>

Type Parameters:
A - The type of tree values
B - The type of returned values
T - The type of threaded context values
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 JOTreeNodeMapFunctionType<A,T,B>
A function for traversing trees.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T input, int depth, JOTreeNodeReadableType<A> node)
    Visit a value in the tree.
  • Method Details

    • apply

      B apply(T input, int depth, JOTreeNodeReadableType<A> node)
      Visit a value in the tree.
      Parameters:
      input - The context value passed to the traversal
      depth - The depth of node relative to the starting node of the traversal
      node - The current node
      Returns:
      A value of type B