Interface CollectionSortStrategy<T extends java.util.Collection>

  • All Known Implementing Classes:
    SortByProductNameStrategy

    public interface CollectionSortStrategy<T extends java.util.Collection>
    Strategy to sort a given collection
    • Method Detail

      • 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 -