com.partnersoft.data
Interface ArraySortingAlgorithm

All Known Implementing Classes:
ArrayQuickSort, ArraySelectionSort

public interface ArraySortingAlgorithm

An interface for generic array (indexed item, not necessarily an actual Java array object) sorting algorithms. A programmer selects an implementation of this, and an instance of ArraySortingGopher, and it does its thing.


Method Summary
 void sort(ArraySortingGopher gopher)
          Does the job using the given gopher.
 void sort(ArraySortingGopher gopher, int start, int end)
          Does the job using the given gopher over the given range.
 

Method Detail

sort

void sort(ArraySortingGopher gopher)
Does the job using the given gopher.


sort

void sort(ArraySortingGopher gopher,
          int start,
          int end)
Does the job using the given gopher over the given range.