From 28035c530f320d3db5f882e47a0c0c0f840812f5 Mon Sep 17 00:00:00 2001 From: Maxim Volkov Date: Thu, 17 Feb 2022 22:19:39 +0100 Subject: [PATCH] Added: Javadoc for Item constructors --- .../main/java/de/hs_fulda/ciip/projjpn/Item.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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 6b9c5f1..b1ccc9f 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 @@ -1,15 +1,25 @@ package de.hs_fulda.ciip.projjpn; public class Item { - // @ToDo: customerReview + private String productTitle; private String description; private int availability = 0; private float price; + /** + * Creation of blank Item. + */ public Item() { } + /** + * Creation of Item. + * @param titel + * @param description + * @param quantity + * @param price + */ public Item(String titel, String description, int quantity, @@ -32,6 +42,7 @@ public class Item { availability = newAmount; } + public void updatePrice(float price) { this.price = price; }