Interface IntervalTree.Visitor<I>

Type Parameters:
I - the type of visited intervals
Enclosing class:
IntervalTree<T,​I extends ChronoInterval<T>>
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.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    visited​(I interval)
    Called recursively during traversal of tree for every interval node.
  • Method Details

    • visited

      boolean visited(I interval)

      Called recursively during traversal of tree for every interval node.

      Parameters:
      interval - visited interval
      Returns:
      true if further traversal shall be cancelled else false