Interface SelectionSorter<Solution_,T>
- Type Parameters:
Solution_- the solution type, the class with thePlanningSolutionannotationT- the selection type
- All Known Implementing Classes:
ComparatorFactorySelectionSorter,ComparatorSelectionSorter
@NullMarked
public interface SelectionSorter<Solution_,T>
Decides the order of a
List of selection
(which is a PlanningEntity, a planningValue, a Move or a Selector).
Implementations are expected to be stateless. The solver may choose to reuse instances.
-
Method Summary
-
Method Details
-
sort
Performs an in-place sorting operation on the given selection list.- Parameters:
solution- never null, the current solutionselectionList- never null, aListofPlanningEntity, planningValue,MoveorSelectorthat will be sorted.
-
sort
Creates a copy of the provided set and sort the data.- Parameters:
solution- never null, the current solutionselectionSet- never null, aSetof values that will be used as input for sorting.
-