这是一个Object类定义的方法
以前博客中提到的equal 如果采用 用户的id来判断是否相等,那么 hashCode 也要这么做。
public int hashCode() { return Objects.hash(name, salary, hireDay) }