Browse Source

Added: Javadoc for Item Methods

feature-pr/shop
Maxim Volkov 3 years ago
parent
commit
2b32772c85
  1. 8
      projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Item.java

8
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;
}

Loading…
Cancel
Save