Generate Overrides for equals(), hashCode() and toString()

We can generate the code to override the equals and hashCode methods

You can use ⌘N (macOS) / 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.

Related Resources

Expand and Collapse Code
Quickly view specific parts of a class by expanding or collapsing code
Move Statement
Move a statement up or down
Optimize imports
Remove unused imports from your code