|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectFlexOr.searchAndSort.SelectionSort
public class SelectionSort
Sort an array of objects using selection sort.
Constructor Summary | |
---|---|
SelectionSort()
|
Method Summary | |
---|---|
static void |
execute(java.lang.Object[] array,
BinaryPredicate bp)
The selection 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 SelectionSort()
Method Detail |
---|
public void sort(java.lang.Object[] array, BinaryPredicate bp)
sort
in interface ArraySort
array
- 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 |