@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((deprecatedDate == null) ? 0 : deprecatedDate.hashCode()); result = prime * result + ((primaryRecord == null) ? 0 : primaryRecord.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Deprecated other = (Deprecated) obj; if (deprecatedDate == null) { if (other.deprecatedDate != null) return false; } else if (!deprecatedDate.equals(other.deprecatedDate)) return false; if (primaryRecord == null) { if (other.primaryRecord != null) return false; } else if (!primaryRecord.equals(other.primaryRecord)) return false; return true; }