If two objects are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce the same integer result.