From 5ce358e79c3f9b4c9ec80d6f678e8b770cd6b41e Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Fri, 18 Sep 2015 08:44:12 +0200 Subject: [PATCH] =?utf8?q?added=20setter=20for=20ownContact=20"flag"=20Sig?= =?utf8?q?ned-off-by:Roland=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/org/mxchange/jcore/model/contact/BaseContact.java | 9 +++------ src/org/mxchange/jcore/model/contact/Contact.java | 7 +++++++ 2 files changed, 10 insertions(+), 6 deletions(-) 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 { 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); } -- 2.39.5