public class StockUpdate extends Object
| Constructor and Description |
|---|
StockUpdate() |
| Modifier and Type | Method and Description |
|---|---|
int |
getPrice() |
long |
getProductId() |
Quantity |
getQuantity() |
StockStatus |
getStatus() |
boolean |
isSpecial() |
void |
setPrice(int price) |
void |
setProductId(long productId) |
void |
setQuantity(Quantity quantity) |
void |
setSpecial(boolean special) |
void |
setStatus(StockStatus status) |
public long getProductId()
public void setProductId(long productId)
productId - the internal IDpublic StockStatus getStatus()
public void setStatus(StockStatus status)
status - the status to setpublic Quantity getQuantity()
public void setQuantity(Quantity quantity)
quantity - the available quantitypublic int getPrice()
public void setPrice(int price)
price - the pricepublic boolean isSpecial()
public void setSpecial(boolean special)
special - true if it's a special offerCopyright © 2015. All rights reserved.