org.optaplanner.core.impl.heuristic.selector.common.decorator
Class ComparatorSelectionSorter
java.lang.Object
org.optaplanner.core.impl.heuristic.selector.common.decorator.ComparatorSelectionSorter
- All Implemented Interfaces:
- SelectionSorter<Object>
public class ComparatorSelectionSorter
- extends Object
- implements SelectionSorter<Object>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComparatorSelectionSorter
public ComparatorSelectionSorter(Comparator<Object> comparator,
SelectionSorterOrder selectionSorterOrder)
sort
public void sort(ScoreDirector scoreDirector,
List<Object> selectionList)
- Specified by:
sort
in interface SelectionSorter<Object>
- Parameters:
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 Selector
Copyright © 2006-2014 JBoss by Red Hat. All Rights Reserved.