From: Roland Haeder Date: Fri, 14 Aug 2015 22:50:46 +0000 (+0200) Subject: Use Float, not float X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5ac60ba5027fae4bae42e3548b584fadd2029692;p=pizzaservice-war.git Use Float, not float Signed-off-by:Roland Häder --- diff --git a/src/java/org/mxchange/pizzaapplication/product/BaseProduct.java b/src/java/org/mxchange/pizzaapplication/product/BaseProduct.java index 0b9d9740..60f3623b 100644 --- a/src/java/org/mxchange/pizzaapplication/product/BaseProduct.java +++ b/src/java/org/mxchange/pizzaapplication/product/BaseProduct.java @@ -33,7 +33,7 @@ public class BaseProduct extends BaseFrameworkSystem implements Product { /** * Price of product */ - private float price; + private Float price; /** * Title of product @@ -103,7 +103,7 @@ public class BaseProduct extends BaseFrameworkSystem implements Product { * @return the price */ @Override - public final float getPrice () { + public final Float getPrice () { return this.price; } @@ -112,7 +112,7 @@ public class BaseProduct extends BaseFrameworkSystem implements Product { * @param price the price to set */ @Override - public final void setPrice (final float price) { + public final void setPrice (final Float price) { this.price = price; } diff --git a/src/java/org/mxchange/pizzaapplication/product/Product.java b/src/java/org/mxchange/pizzaapplication/product/Product.java index 8f55eab3..686f4e1f 100644 --- a/src/java/org/mxchange/pizzaapplication/product/Product.java +++ b/src/java/org/mxchange/pizzaapplication/product/Product.java @@ -55,13 +55,13 @@ public interface Product extends Storeable, Comparable { * * @return Single price of product */ - public float getPrice (); + public Float getPrice (); /** * Price of product * @param price the price to set */ - public void setPrice (final float price); + public void setPrice (final Float price); /** * Getter for product category