1 <p> This class overrides <code>equals(Object)</code>, but does not
2 override <code>hashCode()</code>, and inherits the implementation of
3 <code>hashCode()</code> from <code>java.lang.Object</code> (which returns
4 the identity hash code, an arbitrary value assigned to the object
5 by the VM). Therefore, the class is very likely to violate the
6 invariant that equal objects must have equal hashcodes.</p>
8 <p>If you don't think instances of this class will ever be inserted into a HashMap/HashTable,
9 the recommended <code>hashCode</code> implementation to use is:</p>
10 <pre>public int hashCode() {
11 assert false : "hashCode not designed";
12 return 42; // any arbitrary constant will do