From 70fa1700f510ab13590f9e301baad25e5f1b7105 Mon Sep 17 00:00:00 2001 From: Maxim Volkov Date: Thu, 17 Feb 2022 22:23:52 +0100 Subject: [PATCH] Added: Javadoc for Item Methods + minor refactoring --- .../main/java/de/hs_fulda/ciip/projjpn/Item.java | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Item.java b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Item.java index b9ac69e..4f51d78 100644 --- a/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Item.java +++ b/projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Item.java @@ -46,13 +46,20 @@ public class Item { return availability; } + /** + * + * @param newAmount of items + */ public void updateAvailability(int newAmount) { availability = newAmount; } - - public void updatePrice(float price) { - this.price = price; + /** + * + * @param newPrice of this item. + */ + public void updatePrice(float newPrice) { + this.price = newPrice; } public float getCurrentPrice() {