|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.data.SortingLib
public class SortingLib
Functions to sort random-access, array-like objects.
Copyright 2000-2006 Partner Software, Inc.
| Method Summary | |
|---|---|
static void |
quickSort(SortingGopher gopher)
Convenience method to apply the QuickSort algorithm to the given gopher. |
static void |
selectionSort(SortingGopher gopher)
Convenience method to apply the SelectionSort algorithm to the given gopher. |
static void |
sort(SortingGopher gopher)
Convenience method for when you don't particularly care which sort method is used. |
static void |
sort3(SortingGopher gopher,
int a,
int b,
int c)
Low-level comparison of three items at the given indices. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void sort3(SortingGopher gopher,
int a,
int b,
int c)
SortingAlgorithm implementations.
gopher - gopher providing access to underlying array-like structurea - first index to sortb - second index to sortc - third index to sortpublic static void sort(SortingGopher gopher)
quickSort(SortingGopher)).
gopher - gopher providing access to underlying array-like structurepublic static void quickSort(SortingGopher gopher)
gopher - gopher providing access to underlying array-like structureQuickSortpublic static void selectionSort(SortingGopher gopher)
gopher - gopher providing access to underlying array-like structureSelectionSort
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||