*/
void setContactStreet (final String street);
+ /**
+ * Getter for contact's title
+ * <p>
+ * @return Contact's title
+ */
+ String getContactTitle ();
+
+ /**
+ * Setter for contact's title
+ * <p>
+ * @param contactTitle Contact's title
+ */
+ void setContactTitle (final String contactTitle);
+
/**
* Getter for "updated" timestamp
* <p>
* @return Whether both contacts are same TODO Needs a lot improvements
*/
@Override
- boolean equals (final Object object);
+ boolean equals (final Object object);
@Override
- int hashCode ();
+ int hashCode ();
}
@Column (name = "contact_street", nullable = false)
private String contactStreet;
+ /**
+ * Title (Doctor, etc)
+ */
+ @Column (name = "contact_title")
+ private String contactTitle;
+
/**
* When the contact has been updated
*/
Contact contact = (Contact) object;
// Now test some data TODO Definedly needs improvement
- return ((this.getContactGender().equals(contact.getContactGender())) &&
- (this.getContactFirstName().toLowerCase().equals(contact.getContactFirstName().toLowerCase())) &&
- (this.getContactFamilyName().toLowerCase().equals(contact.getContactFamilyName().toLowerCase())));
+ return ((this.getContactGender().equals(contact.getContactGender()))
+ && (this.getContactFirstName().toLowerCase().equals(contact.getContactFirstName().toLowerCase()))
+ && (this.getContactFamilyName().toLowerCase().equals(contact.getContactFamilyName().toLowerCase())));
}
@Override
this.contactStreet = contactStreet;
}
+ @Override
+ public String getContactTitle () {
+ return this.contactTitle;
+ }
+
+ @Override
+ public void setContactTitle (final String contactTitle) {
+ this.contactTitle = contactTitle;
+ }
+
@Override
public Calendar getContactUpdated () {
return this.contactUpdated;