Example #1
0
 @Override
 public LargeMailUser clone() {
   LargeMailUser copy;
   try {
     copy = ((LargeMailUser) super.clone());
   } catch (CloneNotSupportedException _x) {
     throw new InternalError((_x.toString()));
   }
   copy.addressLine = new ArrayList<AddressLine>((getAddressLine().size()));
   for (AddressLine iter : addressLine) {
     copy.addressLine.add(iter.clone());
   }
   copy.largeMailUserName =
       new ArrayList<LargeMailUser.LargeMailUserName>((getLargeMailUserName().size()));
   for (LargeMailUser.LargeMailUserName iter : largeMailUserName) {
     copy.largeMailUserName.add(iter.clone());
   }
   copy.largeMailUserIdentifier =
       ((largeMailUserIdentifier == null)
           ? null
           : ((LargeMailUser.LargeMailUserIdentifier) largeMailUserIdentifier.clone()));
   copy.buildingName = new ArrayList<BuildingName>((getBuildingName().size()));
   for (BuildingName iter : buildingName) {
     copy.buildingName.add(iter.clone());
   }
   copy.department = ((department == null) ? null : ((Department) department.clone()));
   copy.postBox = ((postBox == null) ? null : ((PostBox) postBox.clone()));
   copy.thoroughfare = ((thoroughfare == null) ? null : ((Thoroughfare) thoroughfare.clone()));
   copy.postalCode = ((postalCode == null) ? null : ((PostalCode) postalCode.clone()));
   copy.any = new ArrayList<Object>((getAny().size()));
   for (Object iter : any) {
     copy.any.add(iter);
   }
   return copy;
 }
Example #2
0
 @Override
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = ((prime * result) + ((addressLine == null) ? 0 : addressLine.hashCode()));
   result = ((prime * result) + ((largeMailUserName == null) ? 0 : largeMailUserName.hashCode()));
   result =
       ((prime * result)
           + ((largeMailUserIdentifier == null) ? 0 : largeMailUserIdentifier.hashCode()));
   result = ((prime * result) + ((buildingName == null) ? 0 : buildingName.hashCode()));
   result = ((prime * result) + ((department == null) ? 0 : department.hashCode()));
   result = ((prime * result) + ((postBox == null) ? 0 : postBox.hashCode()));
   result = ((prime * result) + ((thoroughfare == null) ? 0 : thoroughfare.hashCode()));
   result = ((prime * result) + ((postalCode == null) ? 0 : postalCode.hashCode()));
   result = ((prime * result) + ((any == null) ? 0 : any.hashCode()));
   result = ((prime * result) + ((underscore == null) ? 0 : underscore.hashCode()));
   return result;
 }
Example #3
0
 @Override
 public boolean equals(Object obj) {
   if (this == obj) {
     return true;
   }
   if (obj == null) {
     return false;
   }
   if ((obj instanceof LargeMailUser) == false) {
     return false;
   }
   LargeMailUser other = ((LargeMailUser) obj);
   if (addressLine == null) {
     if (other.addressLine != null) {
       return false;
     }
   } else {
     if (addressLine.equals(other.addressLine) == false) {
       return false;
     }
   }
   if (largeMailUserName == null) {
     if (other.largeMailUserName != null) {
       return false;
     }
   } else {
     if (largeMailUserName.equals(other.largeMailUserName) == false) {
       return false;
     }
   }
   if (largeMailUserIdentifier == null) {
     if (other.largeMailUserIdentifier != null) {
       return false;
     }
   } else {
     if (largeMailUserIdentifier.equals(other.largeMailUserIdentifier) == false) {
       return false;
     }
   }
   if (buildingName == null) {
     if (other.buildingName != null) {
       return false;
     }
   } else {
     if (buildingName.equals(other.buildingName) == false) {
       return false;
     }
   }
   if (department == null) {
     if (other.department != null) {
       return false;
     }
   } else {
     if (department.equals(other.department) == false) {
       return false;
     }
   }
   if (postBox == null) {
     if (other.postBox != null) {
       return false;
     }
   } else {
     if (postBox.equals(other.postBox) == false) {
       return false;
     }
   }
   if (thoroughfare == null) {
     if (other.thoroughfare != null) {
       return false;
     }
   } else {
     if (thoroughfare.equals(other.thoroughfare) == false) {
       return false;
     }
   }
   if (postalCode == null) {
     if (other.postalCode != null) {
       return false;
     }
   } else {
     if (postalCode.equals(other.postalCode) == false) {
       return false;
     }
   }
   if (any == null) {
     if (other.any != null) {
       return false;
     }
   } else {
     if (any.equals(other.any) == false) {
       return false;
     }
   }
   if (underscore == null) {
     if (other.underscore != null) {
       return false;
     }
   } else {
     if (underscore.equals(other.underscore) == false) {
       return false;
     }
   }
   return true;
 }