From: Roland Haeder Date: Mon, 14 Sep 2015 09:36:03 +0000 (+0200) Subject: Added equals() and hashCode() as they both must be implemented. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=799f8da83d0d008b6c6e154dacf106591f9b6448;p=jproduct-core.git Added equals() and hashCode() as they both must be implemented. Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jshopcore/model/basket/AddableBasketItem.java b/src/org/mxchange/jshopcore/model/basket/AddableBasketItem.java index 163eefd..7ed0335 100644 --- a/src/org/mxchange/jshopcore/model/basket/AddableBasketItem.java +++ b/src/org/mxchange/jshopcore/model/basket/AddableBasketItem.java @@ -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 (); }