Interface Utils.SpiralVisitor<T>

  • Enclosing class:
    Utils

    public static interface Utils.SpiralVisitor<T>
    Helper class for spiralPattern
    • Method Detail

      • visit

        boolean visit​(CoordinateID c,
                      int distance)
        Parameters:
        c - The current coordinate
        distance - The distance between center and c
        Returns:
        true if the search should terminate
      • getResult

        T getResult()
        Returns:
        result that is returned by spiralPattern()