Package org.passay.dictionary.sort
Class SelectionSort
- java.lang.Object
-
- org.passay.dictionary.sort.SelectionSort
-
- All Implemented Interfaces:
ArraySorter
public class SelectionSort extends Object implements ArraySorter
Provides an implementation of the selection sort algorithm.- Author:
- Middleware Services
-
-
Constructor Summary
Constructors Constructor Description SelectionSort()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
sort(String[] array, Comparator<String> c)
This will sort the supplied string array.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.passay.dictionary.sort.ArraySorter
sort
-
-
-
-
Method Detail
-
sort
public void sort(String[] array, Comparator<String> c)
Description copied from interface:ArraySorter
This will sort the supplied string array.- Specified by:
sort
in interfaceArraySorter
- Parameters:
array
- To sortc
- Comparator to sort with
-
-