Skip to content

Convert Color class to record for automatic toString/equals/hashCode#6

Open
jibe77 wants to merge 1 commit into
mainfrom
claude/fix-todo-mi6hqd5rldrwho6f-01BVPtiLfG2gVC9JYp4W6S3L
Open

Convert Color class to record for automatic toString/equals/hashCode#6
jibe77 wants to merge 1 commit into
mainfrom
claude/fix-todo-mi6hqd5rldrwho6f-01BVPtiLfG2gVC9JYp4W6S3L

Conversation

@jibe77
Copy link
Copy Markdown
Owner

@jibe77 jibe77 commented Nov 19, 2025

The Color class is a simple value type that benefits from being a record, which automatically provides toString(), equals(), and hashCode() methods. This improves debugging and follows modern Java best practices.

Updated Sprite.java to use accessor methods instead of direct field access.

The Color class is a simple value type that benefits from being a record,
which automatically provides toString(), equals(), and hashCode() methods.
This improves debugging and follows modern Java best practices.

Updated Sprite.java to use accessor methods instead of direct field access.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants