Opus5
Class StraightSelectionSorter

java.lang.Object
  |
  +--Opus5.AbstractSorter
        |
        +--Opus5.StraightSelectionSorter
All Implemented Interfaces:
Sorter

public class StraightSelectionSorter
extends AbstractSorter

Sorter for sorting an array of Comparable objects. Implements straight selection sort.

Version:
$Id: StraightSelectionSorter.java,v 3.1 1998/07/28 01:32:17 brpreiss Exp $
Author:
Bruno R. Preiss, P.Eng.
See Also:
Comparable

Fields inherited from class Opus5.AbstractSorter
array, n
 
Fields inherited from interface Opus5.Sorter
copyright
 
Constructor Summary
StraightSelectionSorter()
           
 
Method Summary
protected  void sort()
          Sorts the array of comparable objects.
 
Methods inherited from class Opus5.AbstractSorter
sort, swap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StraightSelectionSorter

public StraightSelectionSorter()
Method Detail

sort

protected void sort()
Sorts the array of comparable objects.
Overrides:
sort in class AbstractSorter