Interface CollectionSortStrategy<T extends Collection>

All Known Implementing Classes:
SortByProductNameStrategy

public interface CollectionSortStrategy<T extends Collection>
Strategy to sort a given collection
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    ascending order of a given attribute
    default void
    descending order of a given attribute
  • Method Details

    • ascendingSort

      void ascendingSort(T list)
      ascending order of a given attribute
      Parameters:
      list -
    • descendingSort

      default void descendingSort(T list)
      descending order of a given attribute
      Parameters:
      list -