Browse Source

Added: Javadoc for Item constructors

feature-pr/shop
Maxim Volkov 3 years ago
parent
commit
28035c530f
  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

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

Loading…
Cancel
Save