Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-2883

Add missing builder methods in config classes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 8.34.0.Final
    • 8.32.0.Final
    • optaplanner-core
    • None
    • 2023 Week 03-05 (from Jan 16)
    • 3
    • NEW
    • NEW

      Config classes allow replacing old XML config with Java code. There is a vast assortment of builder methods (with names starting with with) that allow creating a config in a declarative manner.

      However, I as I converted my existing config, I noticed that some were missing, forcing me to use setters instead. This means this is not blocking anyone, it's just a nice-to-have.

       

      This is the list of the once i came across:

      • ChangeMoveSelectorConfig.withEntitySelectorConfig() is missing
      • SwapMoveSelectorConfig.withEntitySelectorConfig() is missing
      • EntitySelectorConfig.withEntityClass() has no with* methods
      • ValueSelectorConfig has no with* methods
      • QueuedEntityPlacerConfig.withMoveSelectorConfigList() is present, but withMoveSelectorConfigs (taking generics, like other methods such as SolverConfig.withEntityClasses()) is missing

              lpetrovi@redhat.com Lukáš Petrovický (Inactive)
              nazgul17 Marco T (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: