如果调用Object的equals()得到的答案是 true,那么调用 hashcode()方法的值必定相等,源码说话:
If two objects are equal according to the equals()
method, then calling the hashCode() method on each of
the two objects must produce the same integer result.
如果根据equals()两个对象相等
,然后对每个对象使用hashcode()方法必须产生相同的整数结果。