覆写equals和hashcode方法操作步骤:快捷键:覆写equals和hashcode方法操作步骤:菜单栏: Code —> Generate —> equals() and hashCode() 右键菜单:Generate —> equals() and hashCode() 快捷键:Mac: command + N Windows\/Linux: Alt + Insert —> equals() and hashCode()