Solution_ - the solution typeT - the selection typepublic class ComparatorSelectionSorter<Solution_ extends Solution,T> extends Object implements SelectionSorter<Solution_,T>
List based on a Comparator.| Constructor and Description |
|---|
ComparatorSelectionSorter(Comparator<T> comparator,
SelectionSorterOrder selectionSorterOrder) |
public ComparatorSelectionSorter(Comparator<T> comparator, SelectionSorterOrder selectionSorterOrder)
public void sort(ScoreDirector scoreDirector, List<T> selectionList)
sort in interface SelectionSorter<Solution_ extends Solution,T>scoreDirector - never null, the ScoreDirector
which has the ScoreDirector.getWorkingSolution() to which the selections belong or apply toselectionList - never null, a List
of PlanningEntity, planningValue, Move or SelectorCopyright © 2006–2016 JBoss by Red Hat. All rights reserved.