Package org.passay.dictionary.sort
Interface ArraySorter
-
- All Known Implementing Classes:
ArraysSort
,BubbleSort
,InsertionSort
,QuickSort
,SelectionSort
public interface ArraySorter
Interface for array sort implementations.- Author:
- Middleware Services
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
sort(String[] array)
This will sort the supplied string array.void
sort(String[] array, Comparator<String> c)
This will sort the supplied string array.
-
-
-
Method Detail
-
sort
default void sort(String[] array)
This will sort the supplied string array.- Parameters:
array
- To sort
-
sort
void sort(String[] array, Comparator<String> c)
This will sort the supplied string array.- Parameters:
array
- To sortc
- Comparator to sort with
-
-