Generate Overrides for equals(), hashCode() and toString()
We can generate the code to override the equals and hashCode methods
You can use ⌘N (macOS), or Alt+Insert (Windows/Linux) for the Generate menu and then select equals() and hashCode()
. You can also use the same shortcut again and select toString()
to override that method as well.