-
Notifications
You must be signed in to change notification settings - Fork 4
feat(and-constraint): allow more than two children #24
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
base: main
Are you sure you want to change the base?
Conversation
SundermannC
left a comment
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.
Looks good overall, thanks a lot! I have small inline suggestions. I think we should also merge MultiAnd and And classes to reflect the same behavior in this PR.
.DS_Store
Outdated
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.
These files should never be added. Should be removed and generally added to .gitignore.
| } | ||
| } | ||
|
|
||
| public Constraint getLeft() { |
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.
For backwards compatibility, it may make sense to leave those and make them return the first and last element of the list respectively (same behavior as before when using the left/right constructor)
| @Override | ||
| public List<Constraint> getConstraintSubParts() { | ||
| return Arrays.asList(left, right); | ||
| return new ArrayList<>(children); |
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.
Why do we need a new list here? Can we just return children?
…t for backwards compatibility and deleted the .DS files
No description provided.