@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; }
public Object copyTo(Object target, CopyBuilder copyBuilder) { Country copy = (target == null) ? new Country() : (Country) target; if (isSetAddressLine()) { for (AddressLine part : addressLine) { AddressLine copyPart = (AddressLine) copyBuilder.copy(part); copy.addAddressLine(copyPart); if (part != null && copyPart == part) part.setParent(this); } } if (isSetCountryName()) { for (CountryName part : countryName) { CountryName copyPart = (CountryName) copyBuilder.copy(part); copy.addCountryName(copyPart); if (part != null && copyPart == part) part.setParent(this); } } if (isSetCountryNameCode()) { for (CountryNameCode part : countryNameCode) { CountryNameCode copyPart = (CountryNameCode) copyBuilder.copy(part); copy.addCountryNameCode(copyPart); if (part != null && copyPart == part) part.setParent(this); } } if (isSetAdministrativeArea()) { copy.setAdministrativeArea((AdministrativeArea) copyBuilder.copy(administrativeArea)); if (copy.getAdministrativeArea() == administrativeArea) administrativeArea.setParent(this); } if (isSetLocality()) { copy.setLocality((Locality) copyBuilder.copy(locality)); if (copy.getLocality() == locality) locality.setParent(this); } if (isSetThoroughfare()) { copy.setThoroughfare((Thoroughfare) copyBuilder.copy(thoroughfare)); if (copy.getThoroughfare() == thoroughfare) thoroughfare.setParent(this); } copy.unsetParent(); return copy; }
@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; }
@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; }
public void unsetThoroughfare() { if (isSetThoroughfare()) thoroughfare.unsetParent(); thoroughfare = null; }
public void setThoroughfare(Thoroughfare thoroughfare) { if (thoroughfare != null) thoroughfare.setParent(this); this.thoroughfare = thoroughfare; }