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