From: Roland Haeder <roland@mxchange.org>
Date: Fri, 18 Sep 2015 06:44:12 +0000 (+0200)
Subject: added setter for ownContact "flag"
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5ce358e79c3f9b4c9ec80d6f678e8b770cd6b41e;p=jcore.git

added setter for ownContact "flag"
Signed-off-by:Roland Häder <roland@mxchange.org>
---

diff --git a/src/org/mxchange/jcore/model/contact/BaseContact.java b/src/org/mxchange/jcore/model/contact/BaseContact.java
index e805da3..f978e67 100644
--- a/src/org/mxchange/jcore/model/contact/BaseContact.java
+++ b/src/org/mxchange/jcore/model/contact/BaseContact.java
@@ -517,12 +517,9 @@ public abstract class BaseContact implements Contact, Comparable<Contact> {
 		client.displayOtherDataBox(this);
 	}
 
-	/**
-	 * Enables the flag "own data" which signals that this contact is the user's
-	 * own data.
-	 */
-	protected void enableFlagOwnContact () {
-		this.ownContact = true;
+	@Override
+	public void setOwnContact (final Boolean ownContact) {
+		this.ownContact = ownContact;
 	}
 
 	/**
diff --git a/src/org/mxchange/jcore/model/contact/Contact.java b/src/org/mxchange/jcore/model/contact/Contact.java
index baf2ec9..15d497e 100644
--- a/src/org/mxchange/jcore/model/contact/Contact.java
+++ b/src/org/mxchange/jcore/model/contact/Contact.java
@@ -253,4 +253,11 @@ public interface Contact extends Serializable {
 	 * @return Own data?
 	 */
 	public boolean isOwnContact ();
+
+	/**
+	 * Setter for own contact
+	 *
+	 * @param ownContact Own contact
+	 */
+	public void setOwnContact (final Boolean ownContact);
 }