Interface QuadTreeQuadrantIterationLType<A,​C>

  • Type Parameters:
    A - The type of tree objects
    C - The type of contextual 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 QuadTreeQuadrantIterationLType<A,​C>
    The type of functions used to iterate over the quadrants of quadtrees.
    Since:
    3.0.0
    • Method Detail

      • apply

        TreeVisitResult apply​(C context,
                              QuadTreeQuadrantLType<A> quadrant,
                              long depth)
        Apply the function.
        Parameters:
        context - A context value
        quadrant - The current quadrant
        depth - The current quadrant depth
        Returns:
        A value indicating how or if the traversal should continue