return 1;
}
+ @Override
+ public void copyAll (final Contact contact) {
+ // Copy all:
+ // - base data
+ this.setFirstName(contact.getFirstName());
+ this.setFamilyName(contact.getFamilyName());
+ this.setCompanyName(contact.getCompanyName());
+ this.setStreet(contact.getStreet());
+ this.setZipCode(contact.getZipCode());
+ this.setCity(contact.getCity());
+ this.setCountryCode(contact.getCountryCode());
+
+ // - phone, fax, email
+ this.setPhoneNumber(contact.getPhoneNumber());
+ this.setFaxNumber(contact.getFaxNumber());
+ this.setCellphoneNumber(contact.getCellphoneNumber());
+
+ // - other data
+ this.setBirthday(contact.getBirthday());
+ this.setComment(contact.getComment());
+ this.setCreated(contact.getCreated());
+ this.setUpdated(contact.getUpdated());
+ }
+
/**
* Check if contacts are same or throw an exception
*
* @author Roland Haeder<roland@mxchange.org>
*/
public interface Contact extends Serializable {
+
+ /**
+ * Copies all attributes from other contact object to this
+ *
+ * @param contact Source instance
+ */
+ public void copyAll (final Contact contact);
+
/**
* Id number
* @return the contactId