Skip to content

feat: Add equals, hashCode, deep copy, and tests to MiniMaxChatOptions #2358

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

apappascs
Copy link
Contributor

This commit enhances MiniMaxChatOptions by:

  • Updating equals and hashCode methods for proper object comparison.
  • Updating copy() method, creating new instances of mutable collections (List, Set, Map, Metadata) to prevent shared state.
  • Adding MiniMaxChatOptionsTests to verify copy(), builders, setters, and default values.

This commit enhances MiniMaxChatOptions by:
- Updating `equals` and `hashCode` methods for proper object comparison.
- Updating `copy()` method, creating new instances of mutable collections (List, Set, Map, Metadata) to prevent shared state.
- Adding `MiniMaxChatOptionsTests` to verify `copy()`, builders, setters, and default values.

Signed-off-by: Alexandros Pappas <apappascs@gmail.com>
@apappascs apappascs changed the title feat: equals, hashCode, deep copy, and tests to MiniMaxChatOptions feat: Add equals, hashCode, deep copy, and tests to MiniMaxChatOptions Mar 2, 2025
@markpollack markpollack requested a review from tzolov June 6, 2025 13:40
@markpollack markpollack added this to the 1.1.x milestone Jun 6, 2025
@markpollack markpollack self-assigned this Jun 6, 2025
@markpollack markpollack requested review from ilayaperumalg and removed request for tzolov and ilayaperumalg June 12, 2025 16:04
@markpollack
Copy link
Member

markpollack commented Jun 12, 2025

rebased and added a few more tests and defensive copies of some getters. merged into main d9e3037 and backported to 1.0.x

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants