Package org.passay.dictionary.sort
Class SelectionSort
java.lang.Object
org.passay.dictionary.sort.SelectionSort
- All Implemented Interfaces:
ArraySorter
Provides an implementation of the selection sort algorithm.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsort(String[] array, Comparator<CharSequence> comparator) This will sort the supplied string array.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.passay.dictionary.sort.ArraySorter
sort
-
Constructor Details
-
SelectionSort
public SelectionSort()
-
-
Method Details
-
sort
Description copied from interface:ArraySorterThis will sort the supplied string array.- Specified by:
sortin interfaceArraySorter- Parameters:
array- To sortcomparator- Comparator to sort with
-