From 2b32772c85c3f0745ac29e8f6005036831cf4837 Mon Sep 17 00:00:00 2001 From: Maxim Volkov Date: Thu, 17 Feb 2022 22:21:27 +0100 Subject: [PATCH] Added: Javadoc for Item Methods --- projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Item.java | 8 ++++++++ 1 file changed, 8 insertions(+) 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 b1ccc9f..b9ac69e 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 @@ -30,10 +30,18 @@ public class Item { this.price = price; } + /** + * + * @return true if at least one item is in stock. + */ public boolean inStock() { return availability > 0; } + /** + * + * @return current number of this items + */ public float getCurrentStock() { return availability; }