1: …… 2: public boolean equals(Object obj) { 3: if (obj == null) 4: return false; 5: int i1 = this.hashCode(); 6: int i2 = obj.hashCode(); 7: 8: if (i1 == i2) 9: return true; 10: else 11: return false; 12: } 13: public int hashCode() { 14: return new HashCodeBuilder(17, 37).toHashCode(); 15: }