com.starteam.util
Class QuickSort

java.lang.Object
  extended by com.starteam.util.QuickSort

public final class QuickSort
extends java.lang.Object

An implementation of the quick sort algorithm


Method Summary
static void sort(Sortable s)
          This is an implementation of the Quick Sort algorithm.
static void sortArray(java.lang.Object[] a, SortCompare d)
          This is an implementation of the Quick Sort algorithm.
static void sortInts(int[] a)
          This is an implementation of the Quick Sort algorithm for integers
static void sortStrings(java.lang.String[] a)
          This is an implementation of the Quick Sort algorithm.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sort

public static void sort(Sortable s)
This is an implementation of the Quick Sort algorithm.

Parameters:
s - - the Sortable object

sortArray

public static void sortArray(java.lang.Object[] a,
                             SortCompare d)
This is an implementation of the Quick Sort algorithm.

Parameters:
a - - Object array to be sorted
d - - the SortCompare to determine the order of elements

sortStrings

public static void sortStrings(java.lang.String[] a)
This is an implementation of the Quick Sort algorithm.

Parameters:
a - - String array to be sorted

sortInts

public static void sortInts(int[] a)
This is an implementation of the Quick Sort algorithm for integers

Parameters:
a - - int array to be sorted


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.