Interface ValueRangeSorter<T>

Type Parameters:
T - the value range type
All Known Implementing Classes:
SelectionSorterAdapter

@NullMarked public interface ValueRangeSorter<T>
Basic contract for sorting a range of elements.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    sort(List<T> selectionList)
    Performs an in-place sorting operation on the given selection list.
    sort(Set<T> selectionSet)
    Creates a copy of the provided set and sort the data.
  • Method Details

    • sort

      void sort(List<T> selectionList)
      Performs an in-place sorting operation on the given selection list.
      Parameters:
      selectionList - never null, a List of values that will be sorted.
    • sort

      SortedSet<T> sort(Set<T> selectionSet)
      Creates a copy of the provided set and sort the data.
      Parameters:
      selectionSet - never null, a Set of values that will be used as input for sorting.
    • getInnerSorter

      <S> SelectionSorter<S,T> getInnerSorter()
      Returns:
      the inner sorter class that will be used to sort the data.