Knopflerfish OSGi 5.2.0

org.knopflerfish.util.sort
Class QSort

java.lang.Object
  extended by org.knopflerfish.util.sort.QSort

public class QSort
extends java.lang.Object

Quicksort utility class.


Constructor Summary
protected QSort()
          Use static methods, please
 
Method Summary
static void sort(java.lang.Object[] a, CompareFunc cf)
          Sort an array with objects comparable using a comparison function.
static
<A> void
sort(java.util.Vector<java.lang.Object> a, CompareFunc cf)
          Sort a vector with objects comparable using a comparison function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QSort

protected QSort()
Use static methods, please

Method Detail

sort

public static <A> void sort(java.util.Vector<java.lang.Object> a,
                            CompareFunc cf)
Sort a vector with objects comparable using a comparison function.

Parameters:
a - Vector to sort
cf - comparison function

sort

public static void sort(java.lang.Object[] a,
                        CompareFunc cf)
Sort an array with objects comparable using a comparison function.

Parameters:
a - Array to sort
cf - comparison function

Knopflerfish OSGi 5.2.0