]> git.mxchange.org Git - jcontacts-core.git/blobdiff - src/org/mxchange/jcontacts/contact/Contact.java
rewrote to use unique proptery to avoid another @Index (lesser code)
[jcontacts-core.git] / src / org / mxchange / jcontacts / contact / Contact.java
index 04112076fb14af067e871725847f37f303132f61..0832aedf3b6589e21c960c902cc03e015d6b4705 100644 (file)
@@ -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
  * <p>
  * @author Roland Haeder<roland@mxchange.org>
  */
@@ -233,14 +233,14 @@ public interface Contact extends Serializable {
         * <p>
         * @return Phone number
         */
-       DialableLandLineNumber getContactPhoneNumber ();
+       DialableLandLineNumber getContactLandLineNumber ();
 
        /**
         * Setter for phone number
         * <p>
         * @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
+        * <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>
@@ -296,11 +310,11 @@ public interface Contact extends Serializable {
         * <p>
         * @param object Other possible contact class
         * <p>
-        * @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 ();
 }