Ejemplo n.º 1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   Job other = (Job) obj;
   if (company == null) {
     if (other.company != null) return false;
   } else if (!company.equals(other.company)) return false;
   if (formattedAddress == null) {
     if (other.formattedAddress != null) return false;
   } else if (!formattedAddress.equals(other.formattedAddress)) return false;
   if (jobTitle == null) {
     if (other.jobTitle != null) return false;
   } else if (!jobTitle.equals(other.jobTitle)) return false;
   if (!Arrays.equals(location, other.location)) return false;
   if (!Arrays.equals(skills, other.skills)) return false;
   return true;
 }