]> git.mxchange.org Git - jcontacts-core.git/commitdiff
Added equals() hashCode() for easy comparison + updated jar(s)
authorRoland Haeder <roland@mxchange.org>
Tue, 13 Oct 2015 12:33:11 +0000 (14:33 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 13 Oct 2015 12:33:11 +0000 (14:33 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcountry-core.jar
lib/jphone-core.jar
src/org/mxchange/jcontacts/contact/Contact.java
src/org/mxchange/jcontacts/contact/UserContact.java

index 049ef5f9ea049cecb9bb874ec9b9c5518d6aec4c..7166776ede488c2c9e08be75ae1f7ff182548993 100644 (file)
Binary files a/lib/jcountry-core.jar and b/lib/jcountry-core.jar differ
index 5fc37624f0e952d722990706c34aa17b065d2bef..c2ea571cf165c20b792f0bffd69afb5d0a49ba30 100644 (file)
Binary files a/lib/jphone-core.jar and b/lib/jphone-core.jar differ
index 75c6e6cc9e2be0f7ff7f65c604507e0e786b87c0..2ceaaa41ab3b2ee41004b9040842163e2cf8f47b 100644 (file)
@@ -290,4 +290,17 @@ public interface Contact extends Serializable {
         * @return Own data?
         */
        public Boolean isOwnContact ();
+
+       /**
+        * Check if contacts are same or throw an exception
+        * <p>
+        * @param object Other possible contact class
+        * <p>
+        * @return Whether both contacts are same TODO Needs a lot improvements
+        */
+       @Override
+       public boolean equals (final Object object);
+
+       @Override
+       public int hashCode ();
 }
index 0797db4becd82d0d04a32885e30ec1b88412c95d..8ab889c64d75e3f4db8f295d3c978f202045d075 100644 (file)
@@ -268,13 +268,6 @@ public class UserContact implements Contact, Comparable<Contact> {
                this.setContactUpdated(contact.getContactUpdated());
        }
 
-       /**
-        * Check if contacts are same or throw an exception
-        * <p>
-        * @param object Other possible contact class
-        * <p>
-        * @return Whether both contacts are same TODO Needs a lot improvements
-        */
        @Override
        public boolean equals (final Object object) {
                // Is it same type?