From d1ec7c5f7d7051f90156012321c5b4339be44b2e Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Tue, 8 Sep 2015 15:38:08 +0200 Subject: [PATCH] =?utf8?q?More=20cleanup=20Signed-off-by:Roland=20H=C3=A4d?= =?utf8?q?er=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../mxchange/jcore/model/contact/BaseContact.java | 4 ++++ src/org/mxchange/jcore/model/contact/Contact.java | 12 ++---------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/src/org/mxchange/jcore/model/contact/BaseContact.java b/src/org/mxchange/jcore/model/contact/BaseContact.java index b02109e..c293880 100644 --- a/src/org/mxchange/jcore/model/contact/BaseContact.java +++ b/src/org/mxchange/jcore/model/contact/BaseContact.java @@ -29,6 +29,10 @@ import org.mxchange.jcore.model.contact.gender.Gender; * @version 0.0 */ public abstract class BaseContact extends BaseFrameworkSystem implements Contact, Comparable { + /** + * Serial number + */ + private static final long serialVersionUID = 58_744_284_981_863L; /** * Id number diff --git a/src/org/mxchange/jcore/model/contact/Contact.java b/src/org/mxchange/jcore/model/contact/Contact.java index 2fbc3a0..abc8879 100644 --- a/src/org/mxchange/jcore/model/contact/Contact.java +++ b/src/org/mxchange/jcore/model/contact/Contact.java @@ -16,7 +16,7 @@ */ package org.mxchange.jcore.model.contact; -import org.mxchange.jcore.FrameworkInterface; +import java.io.Serializable; import org.mxchange.jcore.client.Client; import org.mxchange.jcore.model.contact.gender.Gender; @@ -25,7 +25,7 @@ import org.mxchange.jcore.model.contact.gender.Gender; * * @author Roland Haeder */ -public interface Contact extends FrameworkInterface, Comparable { +public interface Contact extends Serializable { /** * Some "getter" for translated gender of the contact * @@ -268,12 +268,4 @@ public interface Contact extends FrameworkInterface, Comparable { * @param client Client instance to call back */ public void show (final Client client); - - /** - * Compare method - * @param contact Contact to compare to - * @return Comparison value - */ - @Override - public int compareTo (final Contact contact); } -- 2.39.5