Interface SortAlgorithm

    • Method Detail

      • sort

        boolean sort​(Cell[][] tab,
                     int column,
                     int maxIter,
                     SortAlgorithm.Order order)
        Method stub for the main sorting methods of SortAlgorithm implementations. Sorting is performed in-place using the given array of data.
        Parameters:
        tab - a 2-D array of type Cell to be sorted
        column - the number of the column which will be the sorting criteria.
        maxIter - maximum number of iterations. Value of -1 means unlimited iterations, <-1 means none.
        order - an enum Order value determining the sorting direction
        Returns:
        a boolean value of whether sorting could be completed in the given number of iterations.