菜单栏: Code —> Generate —> equals() and hashCode()
右键菜单:Generate —> equals() and hashCode()
Mac: command + N
Windows\/Linux: Alt + Insert —> equals() and hashCode()