Knopflerfish OSGi 5.2.0

org.knopflerfish.util.sort
Class Sort

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

public class Sort
extends java.lang.Object


Method Summary
static void sortFileArray(java.io.File[] a)
          Sorts the specified array of File objects into ascending order, according to the natural ordering of its elements.
static void sortFileArray(java.io.File[] a, int fromIndex, int toIndex)
          Sorts the specified range of the specified array of File objects into ascending order, according to the natural ordering of its elements.
static void sortFloatArray(java.lang.Float[] a)
          Sorts the specified array of Float objects into ascending order, according to the natural ordering of its elements.
static void sortFloatArray(java.lang.Float[] a, int fromIndex, int toIndex)
          Sorts the specified range of the specified array of Float objects into ascending order, according to the natural ordering of its elements.
static void sortIntegerArray(java.lang.Integer[] a)
          Sorts the specified array of Integer objects into ascending order, according to the natural ordering of its elements.
static void sortIntegerArray(java.lang.Integer[] a, int fromIndex, int toIndex)
          Sorts the specified range of the specified array of Integer objects into ascending order, according to the natural ordering of its elements.
static void sortStringArray(java.lang.String[] a)
          Sorts the specified array of String objects into ascending order, according to the natural ordering of its elements.
static void sortStringArray(java.lang.String[] a, int fromIndex, int toIndex)
          Sorts the specified range of the specified array of String objects into ascending order, according to the natural ordering of its elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

sortIntegerArray

public static void sortIntegerArray(java.lang.Integer[] a)
Sorts the specified array of Integer objects into ascending order, according to the natural ordering of its elements. The sorting algorithm is mergesort. This algorithm offers n*log(n) performance.

Parameters:
a - The array to be sorted.

sortIntegerArray

public static void sortIntegerArray(java.lang.Integer[] a,
                                    int fromIndex,
                                    int toIndex)
Sorts the specified range of the specified array of Integer objects into ascending order, according to the natural ordering of its elements. The range to be sorted extends from index fromIndex, inclusive, to index toIndex, exclusive. The sorting algorithm is mergesort. This algorithm offers n*log(n) performance.

Parameters:
a - The array to be sorted.
fromIndex - The index of the first element (inclusive) to be sorted.
toIndex - The index of the last element (exclusive) to be sorted.

sortStringArray

public static void sortStringArray(java.lang.String[] a)
Sorts the specified array of String objects into ascending order, according to the natural ordering of its elements. The sorting algorithm is mergesort. This algorithm offers n*log(n) performance.

Parameters:
a - The array to be sorted.

sortStringArray

public static void sortStringArray(java.lang.String[] a,
                                   int fromIndex,
                                   int toIndex)
Sorts the specified range of the specified array of String objects into ascending order, according to the natural ordering of its elements. The range to be sorted extends from index fromIndex, inclusive, to index toIndex, exclusive. The sorting algorithm is mergesort. This algorithm offers n*log(n) performance.

Parameters:
a - The array to be sorted.
fromIndex - The index of the first element (inclusive) to be sorted.
toIndex - The index of the last element (exclusive) to be sorted.

sortFileArray

public static void sortFileArray(java.io.File[] a)
Sorts the specified array of File objects into ascending order, according to the natural ordering of its elements. The sorting algorithm is mergesort. This algorithm offers n*log(n) performance.

Parameters:
a - The array to be sorted.

sortFileArray

public static void sortFileArray(java.io.File[] a,
                                 int fromIndex,
                                 int toIndex)
Sorts the specified range of the specified array of File objects into ascending order, according to the natural ordering of its elements. The range to be sorted extends from index fromIndex, inclusive, to index toIndex, exclusive. The sorting algorithm is mergesort. This algorithm offers n*log(n) performance.

Parameters:
a - The array to be sorted.
fromIndex - The index of the first element (inclusive) to be sorted.
toIndex - The index of the last element (exclusive) to be sorted.

sortFloatArray

public static void sortFloatArray(java.lang.Float[] a)
Sorts the specified array of Float objects into ascending order, according to the natural ordering of its elements. The sorting algorithm is mergesort. This algorithm offers n*log(n) performance.

Parameters:
a - The array to be sorted.

sortFloatArray

public static void sortFloatArray(java.lang.Float[] a,
                                  int fromIndex,
                                  int toIndex)
Sorts the specified range of the specified array of Float objects into ascending order, according to the natural ordering of its elements. The range to be sorted extends from index fromIndex, inclusive, to index toIndex, exclusive. The sorting algorithm is mergesort. This algorithm offers n*log(n) performance.

Parameters:
a - The array to be sorted.
fromIndex - The index of the first element (inclusive) to be sorted.
toIndex - The index of the last element (exclusive) to be sorted.

Knopflerfish OSGi 5.2.0