|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.amattioli.encapsulate.money.Discount
public class Discount
| Field Summary | |
|---|---|
static Discount |
NO_DISCOUNT
|
| Constructor Summary | |
|---|---|
Discount(BigDecimal perc1)
|
|
Discount(BigDecimal perc1,
BigDecimal perc2)
|
|
| Method Summary | |
|---|---|
Money |
applyTo(Money m)
|
boolean |
equals(Object obj)
|
BigDecimal |
getPerc1()
|
BigDecimal |
getPerc2()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Discount NO_DISCOUNT
| Constructor Detail |
|---|
public Discount(BigDecimal perc1)
public Discount(BigDecimal perc1,
BigDecimal perc2)
| Method Detail |
|---|
public BigDecimal getPerc1()
public BigDecimal getPerc2()
public Money applyTo(Money m)
public boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||