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 TypeMethodDescriptionvoidascendingSort(T list) ascending order of a given attributedefault voiddescendingSort(T list) descending order of a given attribute
-
Method Details
-
ascendingSort
ascending order of a given attribute- Parameters:
list-
-
descendingSort
descending order of a given attribute- Parameters:
list-
-