(Object anotherObj)
| 272 | } |
| 273 | |
| 274 | @Override |
| 275 | public boolean equals(Object anotherObj) { |
| 276 | if (!(anotherObj instanceof ComplexKey)) return false; |
| 277 | ComplexKey another = (ComplexKey) anotherObj; |
| 278 | return key1.equals(another.key1) && key2.equals(another.key2); |
| 279 | } |
| 280 | |
| 281 | @Override |
| 282 | public int hashCode() { |
no outgoing calls