Class ArraysSort

java.lang.Object
org.passay.dictionary.sort.ArraysSort
All Implemented Interfaces:
ArraySorter

public class ArraysSort extends Object implements ArraySorter
Delegates sorting to Arrays.sort(Object[], Comparator).
  • Constructor Details

    • ArraysSort

      public ArraysSort()
  • Method Details

    • sort

      public void sort(String[] array)
      Description copied from interface: ArraySorter
      This will sort the supplied string array.
      Specified by:
      sort in interface ArraySorter
      Parameters:
      array - To sort
    • sort

      public void sort(String[] array, Comparator<CharSequence> comparator)
      Description copied from interface: ArraySorter
      This will sort the supplied string array.
      Specified by:
      sort in interface ArraySorter
      Parameters:
      array - To sort
      comparator - Comparator to sort with