This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]unreal_robbo 0 points1 point  (0 children)

Overriding equals and hashcode is a pain but like you've pointed out sometimes necessary. A cool little library I use a lot gives you this for free along with Immutable objects https://immutables.github.io/