org.apache.turbine.util
Class QuickSort

java.lang.Object
  extended byorg.apache.turbine.util.QuickSort

Deprecated. This class will be removed after the 2.3 release. It is not part of the Web Framework scope. If you need it, please use a sorting library for quicksort.

public class QuickSort
extends java.lang.Object

QuickSort - adapted from Doug Lea's Public Domain collection library.

Version:
$Id: QuickSort.java 264148 2005-08-29 14:21:04Z henning $
Author:
Dave Bryson

Constructor Summary
QuickSort()
          Deprecated.  
 
Method Summary
static void quickSort(java.lang.Object[] s, int lo, int hi, Comparable cmp)
          Deprecated. Sort array of Objects using the QuickSort algorithm.
 void sort(java.lang.Object[] data, Comparable cmp)
          Deprecated. Sorts and array of objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuickSort

public QuickSort()
Deprecated. 
Method Detail

quickSort

public static void quickSort(java.lang.Object[] s,
                             int lo,
                             int hi,
                             Comparable cmp)
Deprecated. 
Sort array of Objects using the QuickSort algorithm.

Parameters:
s - An Object[].
lo - The current lower bound.
hi - The current upper bound.
cmp - A Comparable to compare two elements.

sort

public void sort(java.lang.Object[] data,
                 Comparable cmp)
Deprecated. 
Sorts and array of objects.

Parameters:
data - An Object[].
cmp - A Comparable to compare two elements.


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.