-
Notifications
You must be signed in to change notification settings - Fork 177
chore: improve name for recently introduced MoveDirector API #2058
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request renames the assignValueAndInsert method to assignValueAndAdd in the MoveDirector API to align with Java's java.util.List naming conventions. This is part of the preview API for the Neighborhoods feature.
Changes:
- Renamed
assignValueAndInsert()toassignValueAndAdd()across the API and implementation - Updated javadoc to explicitly reference
List#add(int, Object)andList#set(int, Object)for clarity - Improved documentation wording, changing "later values" to "subsequent values"
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
core/src/main/java/ai/timefold/solver/core/preview/api/move/builtin/ListAssignMove.java |
Updated method call from assignValueAndInsert to assignValueAndAdd |
core/src/main/java/ai/timefold/solver/core/preview/api/move/MutableSolutionView.java |
Renamed method signature, updated deprecated method, added List import, and improved javadoc references |
core/src/main/java/ai/timefold/solver/core/impl/move/MoveDirector.java |
Renamed method implementation to match new API signature |
core/src/main/java/ai/timefold/solver/core/preview/api/move/MutableSolutionView.java
Show resolved
Hide resolved
core/src/main/java/ai/timefold/solver/core/preview/api/move/MutableSolutionView.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
|


This way, it is consistent with what java.util.List does.