|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectFlexOr.searchAndSort.InsertSort
public class InsertSort
Sort an array of objects using insert sort.
| Constructor Summary | |
|---|---|
InsertSort()
|
|
| Method Summary | |
|---|---|
static void |
execute(java.lang.Object[] array,
BinaryPredicate bp)
The insert sort method. |
void |
sort(java.lang.Object[] array,
BinaryPredicate bp)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InsertSort()
| Method Detail |
|---|
public void sort(java.lang.Object[] array,
BinaryPredicate bp)
sort in interface ArraySortarray - Array of elements to be sorted.bp - Defines how array elements are compared.
public static void execute(java.lang.Object[] array,
BinaryPredicate bp)
array - Array of elements to be sorted.bp - Defines how array elements are compared.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||