Class BubbleSort

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

public class BubbleSort extends Object implements ArraySorter
Provides an implementation of the bubble sort algorithm.
  • Constructor Details

    • BubbleSort

      public BubbleSort()
  • Method Details

    • 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