From 5ac60ba5027fae4bae42e3548b584fadd2029692 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Sat, 15 Aug 2015 00:50:46 +0200 Subject: [PATCH] =?utf8?q?Use=20Float,=20not=20float=20Signed-off-by:Rolan?= =?utf8?q?d=20H=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../org/mxchange/pizzaapplication/product/BaseProduct.java | 6 +++--- src/java/org/mxchange/pizzaapplication/product/Product.java | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) 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 -- 2.39.5