Browse Source

Added: Javadoc for Item Methods + minor refactoring

feature-pr/shop
Maxim Volkov 3 years ago
parent
commit
70fa1700f5
  1. 13
      projjpn/src/main/java/de/hs_fulda/ciip/projjpn/Item.java

13
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() {

Loading…
Cancel
Save