]> git.mxchange.org Git - jcore.git/blobdiff - src/org/mxchange/jcore/contact/Contact.java
Ignored some strings for internationalization + some debug messages added
[jcore.git] / src / org / mxchange / jcore / contact / Contact.java
index 7cd1373d41ad76a36877c86e4137499b941cefc3..c3f547644c2a06621ac13767a724f907746388dd 100644 (file)
  */
 package org.mxchange.jcore.contact;
 
+import java.lang.reflect.Field;
+import java.util.Iterator;
+import java.util.Map;
 import org.mxchange.jcore.FrameworkInterface;
 import org.mxchange.jcore.client.Client;
 
 /**
+ * A general contact interface
  *
  * @author Roland Haeder
  */
 public interface Contact extends FrameworkInterface {
-
        /**
-        * Some "getter" for translated gender of the contact
+        * Returns an iterator of all values from this object
         *
-        * @return Translated / human-readable gender
+        * @return An iterator
         */
-       public String getTranslatedGender ();
+       public Iterator<Map.Entry<Field, Object>> iterator ();
 
        /**
-        * Checks whether the contact is user's own data
+        * Some "getter" for translated gender of the contact
         *
-        * @return Own data?
+        * @return Translated / human-readable gender
         */
-       public boolean isOwnContact ();
+       public String getTranslatedGender ();
 
        /**
         * Gender of the contact
@@ -114,28 +117,28 @@ public interface Contact extends FrameworkInterface {
         *
         * @return the houseNumber
         */
-       public long getHouseNumber ();
+       public Long getHouseNumber ();
 
        /**
         * House number
         *
         * @param houseNumber the houseNumber to set
         */
-       public void setHouseNumber (final long houseNumber);
+       public void setHouseNumber (final Long houseNumber);
 
        /**
         * ZIP code
         *
         * @return the zipCode
         */
-       public long getZipCode ();
+       public Long getZipCode ();
 
        /**
         * ZIP code
         *
         * @param zipCode the zipCode to set
         */
-       public void setZipCode (final long zipCode);
+       public void setZipCode (final Long zipCode);
 
        /**
         * City
@@ -249,6 +252,13 @@ public interface Contact extends FrameworkInterface {
         */
        public void setComment (final String comment);
 
+       /**
+        * Checks whether the contact is user's own data
+        *
+        * @return Own data?
+        */
+       public boolean isOwnContact ();
+
        /**
         * Shows the contact to the user
         *