it.amattioli.encapsulate.money
Class Discount

Show UML class diagram
java.lang.Object
  extended by it.amattioli.encapsulate.money.Discount

public class Discount
extends Object


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

NO_DISCOUNT

public static final Discount NO_DISCOUNT
Constructor Detail

Discount

public Discount(BigDecimal perc1)

Discount

public Discount(BigDecimal perc1,
                BigDecimal perc2)
Method Detail

getPerc1

public BigDecimal getPerc1()

getPerc2

public BigDecimal getPerc2()

applyTo

public Money applyTo(Money m)

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2011. All Rights Reserved.