* It is <em>not</em> required that if two objects are unequal * according to the {@link java.lang.Object#equals(java.lang.Object)} * method, then calling the <tt>hashCode</tt> method on each of the * two objects must produce distinct integer results. However, the * programmer should be aware that producing distinct integer results * for unequal objects may improve the performance of hashtables.你一定没有读完jdk注释的全文,前面还加了重点符号来说"not" required 。后面也用"However"特别强调了注意事项。
* according to the {@link java.lang.Object#equals(java.lang.Object)}
* method, then calling the <tt>hashCode</tt> method on each of the
* two objects must produce distinct integer results. However, the
* programmer should be aware that producing distinct integer results
* for unequal objects may improve the performance of hashtables.你一定没有读完jdk注释的全文,前面还加了重点符号来说"not" required 。后面也用"However"特别强调了注意事项。