Package com.io7m.jorchard.core
Interface JOTreeNodeMapFunctionType<A,T,B>
- Type Parameters:
A- The type of tree valuesB- The type of returned valuesT- 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.
A function for traversing trees.
-
Method Summary
Modifier and TypeMethodDescriptionapply(T input, int depth, JOTreeNodeReadableType<A> node) Visit a value in the tree.
-
Method Details
-
apply
Visit a value in the tree.- Parameters:
input- The context value passed to the traversaldepth- The depth of node relative to the starting node of the traversalnode- The current node- Returns:
- A value of type
B
-