Exemplo n.º 1
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) return true;
   if (!super.equals(obj)) return false;
   if (getClass() != obj.getClass()) return false;
   Contact other = (Contact) obj;
   if (contactOwner == null) {
     if (other.contactOwner != null) return false;
   } else if (!contactOwner.equals(other.contactOwner)) return false;
   if (contactOwnerKeyId == null) {
     if (other.contactOwnerKeyId != null) return false;
   } else if (!contactOwnerKeyId.equals(other.contactOwnerKeyId)) return false;
   if (ecPublicKey == null) {
     if (other.ecPublicKey != null) return false;
   } else if (!ecPublicKey.equals(other.ecPublicKey)) return false;
   if (alias == null) {
     if (other.alias != null) return false;
   } else if (!alias.equals(other.alias)) return false;
   return true;
 }