Microsoft SDK for Java

Sort Class

The Sort Class of the com.ms.util package implements an abstract sorting engine.

public abstract class Sort
{
  // Constructors
  protected Sort();
  protected void doSort(int lo, int size);

  // Methods
  protected int compare(int p, int q);
  protected void swap(int p, int q);
}

The Sort class is a base class for implementing container-specific sorts. For examples of subclasses of Sort, see com.ms.util.VectorSort or com.ms.util.Arraysort.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.