]> git.mxchange.org Git - jcustomer-core.git/blobdiff - src/org/mxchange/jshopcore/model/item/BaseItem.java
Continued:
[jcustomer-core.git] / src / org / mxchange / jshopcore / model / item / BaseItem.java
index 0353d3396cc44481de746f8c6bfd04ef3a6a9475..d2895c6533a071246e7db34c659f7af2f496f4b8 100644 (file)
@@ -18,7 +18,8 @@ package org.mxchange.jshopcore.model.item;
 
 import java.text.MessageFormat;
 import java.util.Objects;
-import org.mxchange.jcoree.BaseEeSystem;
+import org.mxchange.jcoreee.BaseEeSystem;
+import org.mxchange.jshopcore.model.basket.AddableBasketItem;
 import org.mxchange.jshopcore.model.product.Product;
 
 /**
@@ -58,19 +59,6 @@ public abstract class BaseItem extends BaseEeSystem implements AddableBasketItem
         */
        private Product product;
 
-       @Override
-       public Float calculateTotalPrice () {
-               // product should be set
-               if (this.getProduct() == null) {
-                       // Abort here
-                       throw new NullPointerException("product is null"); //NOI18N
-               }
-
-               // Calculate and return it
-               // TODO: If later other purchaseable items (other than products) are handled through this class, this needs expansion
-               return (this.getAmount() * this.getProduct().getPrice());
-       }
-
        @Override
        public int compareTo (final AddableBasketItem item) {
                // Trace message