Use non-deprecated related sorting fields and methods

Apache 2.0

Use non-deprecated related sorting fields and methods.

ai.timefold.solver.migration.v8.SortingMigrationRecipe
mod run . --recipe=ai.timefold.solver.migration.v8.SortingMigrationRecipe

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change annotation attribute name @PlanningVariable(strengthComparatorClass) to @PlanningVariable(comparatorClass)
  2. Change annotation attribute name @PlanningVariable(strengthWeightFactoryClass) to @PlanningVariable(comparatorFactoryClass)
  3. Change type NullStrengthComparator to NullComparator
  4. Change type NullStrengthWeightFactory to NullComparatorFactory
  5. Change annotation attribute name @PlanningEntity(difficultyComparatorClass) to @PlanningEntity(comparatorClass)
  6. Change annotation attribute name @PlanningEntity(difficultyWeightFactoryClass) to @PlanningEntity(comparatorFactoryClass)
  7. Change type NullDifficultyComparator to NullComparator
  8. Change type NullDifficultyWeightFactory to NullComparatorFactory
  9. Change method name ai.timefold.solver.core.config.heuristic.selector.move.MoveSelectorConfig getSorterComparatorClass(..) to getComparatorClass
  10. Change method name ai.timefold.solver.core.config.heuristic.selector.move.MoveSelectorConfig setSorterComparatorClass(..) to setComparatorClass
  11. Change method name ai.timefold.solver.core.config.heuristic.selector.move.MoveSelectorConfig withSorterComparatorClass(..) to withComparatorClass
  12. Change method name ai.timefold.solver.core.config.heuristic.selector.move.MoveSelectorConfig getSorterWeightFactoryClass(..) to getComparatorFactoryClass
  13. Change method name ai.timefold.solver.core.config.heuristic.selector.move.MoveSelectorConfig setSorterWeightFactoryClass(..) to setComparatorFactoryClass
  14. Change method name ai.timefold.solver.core.config.heuristic.selector.move.MoveSelectorConfig withSorterWeightFactoryClass(..) to withComparatorFactoryClass
  15. Change method name ai.timefold.solver.core.config.heuristic.selector.entity.EntitySelectorConfig getSorterComparatorClass(..) to getComparatorClass
  16. Change method name ai.timefold.solver.core.config.heuristic.selector.entity.EntitySelectorConfig setSorterComparatorClass(..) to setComparatorClass
  17. Change method name ai.timefold.solver.core.config.heuristic.selector.entity.EntitySelectorConfig withSorterComparatorClass(..) to withComparatorClass
  18. Change method name ai.timefold.solver.core.config.heuristic.selector.entity.EntitySelectorConfig getSorterWeightFactoryClass(..) to getComparatorFactoryClass
  19. Change method name ai.timefold.solver.core.config.heuristic.selector.entity.EntitySelectorConfig setSorterWeightFactoryClass(..) to setComparatorFactoryClass
  20. Change method name ai.timefold.solver.core.config.heuristic.selector.entity.EntitySelectorConfig withSorterWeightFactoryClass(..) to withComparatorFactoryClass
  21. Change method name ai.timefold.solver.core.config.heuristic.selector.value.ValueSelectorConfig getSorterComparatorClass(..) to getComparatorClass
  22. Change method name ai.timefold.solver.core.config.heuristic.selector.value.ValueSelectorConfig setSorterComparatorClass(..) to setComparatorClass
  23. Change method name ai.timefold.solver.core.config.heuristic.selector.value.ValueSelectorConfig withSorterComparatorClass(..) to withComparatorClass
  24. Change method name ai.timefold.solver.core.config.heuristic.selector.value.ValueSelectorConfig getSorterWeightFactoryClass(..) to getComparatorFactoryClass
  25. Change method name ai.timefold.solver.core.config.heuristic.selector.value.ValueSelectorConfig setSorterWeightFactoryClass(..) to setComparatorFactoryClass
  26. Change method name ai.timefold.solver.core.config.heuristic.selector.value.ValueSelectorConfig withSorterWeightFactoryClass(..) to withComparatorFactoryClass
  27. Replace constant with another constant
  28. Replace constant with another constant
  29. Replace constant with another constant
  30. Replace constant with another constant
  31. Replace constant with another constant
  32. Replace constant with another constant