com.partnersoft.data
Class ArraySelectionSort

java.lang.Object
  extended by com.partnersoft.data.ArraySelectionSort
All Implemented Interfaces:
ArraySortingAlgorithm

public class ArraySelectionSort
extends java.lang.Object
implements ArraySortingAlgorithm

A generic selection sort.

Author:
Paul Reavis Copyright 2000 Partner Software, Inc.

Constructor Summary
ArraySelectionSort()
           
 
Method Summary
static ArraySelectionSort singleton()
           
 void sort(ArraySortingGopher gopher)
          Just do it.
 void sort(ArraySortingGopher gopher, int start, int end)
          Does the job using the given gopher over the given range.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArraySelectionSort

public ArraySelectionSort()
Method Detail

singleton

public static ArraySelectionSort singleton()

sort

public final void sort(ArraySortingGopher gopher)
Just do it.

Specified by:
sort in interface ArraySortingAlgorithm

sort

public final void sort(ArraySortingGopher gopher,
                       int start,
                       int end)
Description copied from interface: ArraySortingAlgorithm
Does the job using the given gopher over the given range.

Specified by:
sort in interface ArraySortingAlgorithm