Interface InsertionStrategy

    • Method Detail

      • choose

        <A> int choose​(A options,
                       ArrayAdapter<? extends SpatialComparable,​A> getter,
                       SpatialComparable obj,
                       int height,
                       int depth)
        Choose insertion rectangle.
        Parameters:
        options - Options to choose from
        getter - Array adapter for options
        obj - Insertion object
        height - Tree height
        depth - Insertion depth (depth == height - 1 indicates leaf level)
        Returns:
        Subtree index in array.