예제 #1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   final Individuals other = (Individuals) obj;
   if (indId == null) {
     if (other.indId != null) return false;
   } else if (!indId.equals(other.indId)) return false;
   if (indFname == null) {
     if (other.indFname != null) return false;
   } else if (!indFname.equals(other.indFname)) return false;
   if (indMname == null) {
     if (other.indMname != null) return false;
   } else if (!indMname.equals(other.indMname)) return false;
   if (indLname == null) {
     if (other.indLname != null) return false;
   } else if (!indLname.equals(other.indLname)) return false;
   if (indEmail == null) {
     if (other.indEmail != null) return false;
   } else if (!indEmail.equals(other.indEmail)) return false;
   if (indQualification == null) {
     if (other.indQualification != null) return false;
   } else if (!indQualification.equals(other.indQualification)) return false;
   if (indAreaOfExperties == null) {
     if (other.indAreaOfExperties != null) return false;
   } else if (!indAreaOfExperties.equals(other.indAreaOfExperties)) return false;
   if (indExperinceYears == null) {
     if (other.indExperinceYears != null) return false;
   } else if (!indExperinceYears.equals(other.indExperinceYears)) return false;
   if (indAboutExperience == null) {
     if (other.indAboutExperience != null) return false;
   } else if (!indAboutExperience.equals(other.indAboutExperience)) return false;
   if (indCellno == null) {
     if (other.indCellno != null) return false;
   } else if (!indCellno.equals(other.indCellno)) return false;
   if (indAddress == null) {
     if (other.indAddress != null) return false;
   } else if (!indAddress.equals(other.indAddress)) return false;
   if (indCity == null) {
     if (other.indCity != null) return false;
   } else if (!indCity.equals(other.indCity)) return false;
   if (indState == null) {
     if (other.indState != null) return false;
   } else if (!indState.equals(other.indState)) return false;
   if (indCreationDate == null) {
     if (other.indCreationDate != null) return false;
   } else if (!indCreationDate.equals(other.indCreationDate)) return false;
   return true;
 }
 public boolean equals(Object o) {
   return (o instanceof ExperimentalResult && id != null)
       ? id.equals(((ExperimentalResult) o).getId())
       : this == o;
 }