*/
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
*
* @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
*/
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
*