X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2Forg%2Fmxchange%2Fjcontacts%2Fcontact%2FContact.java;h=0832aedf3b6589e21c960c902cc03e015d6b4705;hb=03209c3c702f981ee2d04685037b9574da905829;hp=04112076fb14af067e871725847f37f303132f61;hpb=9b112ee35672a877b2d2d0fa0c1248f9c7491d90;p=jcontacts-core.git diff --git a/src/org/mxchange/jcontacts/contact/Contact.java b/src/org/mxchange/jcontacts/contact/Contact.java index 0411207..0832aed 100644 --- a/src/org/mxchange/jcontacts/contact/Contact.java +++ b/src/org/mxchange/jcontacts/contact/Contact.java @@ -1,5 +1,5 @@ /* - * Copyright (C) 2015 Roland Haeder + * Copyright (C) 2016 Roland Haeder * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,7 +26,7 @@ import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber; import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber; /** - * A general contact interface + * A general contact POJI *
* @author Roland Haeder
* @return Phone number
*/
- DialableLandLineNumber getContactPhoneNumber ();
+ DialableLandLineNumber getContactLandLineNumber ();
/**
* Setter for phone number
*
* @param phoneNumber Phone number
*/
- void setContactPhoneNumber (final DialableLandLineNumber phoneNumber);
+ void setContactLandLineNumber (final DialableLandLineNumber phoneNumber);
/**
* Street
@@ -256,6 +256,20 @@ public interface Contact extends Serializable {
*/
void setContactStreet (final String street);
+ /**
+ * Getter for contact's title
+ *
+ * @return Contact's title
+ */
+ String getContactTitle ();
+
+ /**
+ * Setter for contact's title
+ *
+ * @param contactTitle Contact's title
+ */
+ void setContactTitle (final String contactTitle);
+
/**
* Getter for "updated" timestamp
*
@@ -296,11 +310,11 @@ public interface Contact extends Serializable {
*
* @param object Other possible contact class
*
- * @return Whether both contacts are same TODO Needs a lot improvements
+ * @return Whether both contacts are same
*/
@Override
- boolean equals (final Object object);
+ boolean equals (final Object object);
@Override
- int hashCode ();
+ int hashCode ();
}