public class ProductPromotion extends Object
| Constructor and Description |
|---|
ProductPromotion() |
| Modifier and Type | Method and Description |
|---|---|
ProductPromotion |
discount(Double discount) |
boolean |
equals(Object o) |
Double |
getDiscount()
The discount of a promotion
|
TimeDuration |
getTimeLeft()
Get timeLeft
|
int |
hashCode() |
void |
setDiscount(Double discount) |
void |
setTimeLeft(TimeDuration timeLeft) |
ProductPromotion |
timeLeft(TimeDuration timeLeft) |
String |
toString() |
public ProductPromotion discount(Double discount)
public Double getDiscount()
public void setDiscount(Double discount)
public ProductPromotion timeLeft(TimeDuration timeLeft)
public TimeDuration getTimeLeft()
public void setTimeLeft(TimeDuration timeLeft)
Copyright © 2019. All rights reserved.