Methods Summary |
---|
public Item | getItem() return item;
|
public int | getQuantity() return quantity;
|
public double | getTotalPrice()
if (item != null) {
return item.getListPrice() * quantity;
}
else {
return 0;
}
|
public void | incrementQuantity()
quantity++;
|
public boolean | isInStock() return inStock;
|
public void | setInStock(boolean inStock) this.inStock = inStock;
|
public void | setItem(Item item)
this.item = item;
|
public void | setQuantity(int quantity)
this.quantity = quantity;
|