- Type Parameters:
I- the type of visited intervals
- 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 static interface IntervalTree.Visitor<I>
Callback interface for tree traversal according to the visitor pattern design.
visitedboolean visited(I interval)
Called recursively during traversal of tree for every interval node.
interval- visited interval
trueif further traversal shall be cancelled else