public final class SortUtil extends Object
All the methods in this class are static.
Constructor and Description |
---|
SortUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
quickSort(Comparable[] obs)
Performs a quick sort on the given array of Comparable objects.
|
static void |
quickSort(Comparable[] list,
int min,
int max)
Performs a quick sort on the given array of Comparable objects between
the min and maximum range.
|
static int |
sortedIndexOf(Comparable[] list,
Comparable val,
int lower,
int higher)
Quickly finds the index of the given object in the list.
|
static SearchResults |
sortedQuickFind(Comparable[] list,
Comparable val,
SearchResults results)
Quickly finds the given element in the array of objects.
|
public static void quickSort(Comparable[] list, int min, int max)
public static void quickSort(Comparable[] obs)
public static int sortedIndexOf(Comparable[] list, Comparable val, int lower, int higher)
public static SearchResults sortedQuickFind(Comparable[] list, Comparable val, SearchResults results)
Copyright © 2015. All rights reserved.