]> git.mxchange.org Git - jproduct-core.git/commitdiff
Added equals() and hashCode() as they both must be implemented.
authorRoland Haeder <roland@mxchange.org>
Mon, 14 Sep 2015 09:36:03 +0000 (11:36 +0200)
committerRoland Haeder <roland@mxchange.org>
Mon, 14 Sep 2015 09:36:03 +0000 (11:36 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/jshopcore/model/basket/AddableBasketItem.java

index 163eefd691cbb2832ebfb2e046e69120f0082101..7ed033580ea60c57a9584cb5f44e461698d5d4b0 100644 (file)
@@ -102,4 +102,18 @@ public interface AddableBasketItem extends Serializable {
         * @return Whether a Product instance is set
         */
        public boolean isProductType ();
+
+       /**
+        * Check equality on item instance
+        *
+        * @param object Other object to check
+        */
+       @Override
+       public boolean equals (final Object object);
+
+       /**
+        * Hash-code calculattion
+        */
+       @Override
+       public int hashCode ();
 }