Package net.codecrete.qrbill.generator
Class SwicoBillInformation.RateDetail
java.lang.Object
net.codecrete.qrbill.generator.SwicoBillInformation.RateDetail
- Enclosing class:
SwicoBillInformation
VAT rate detail: a tuple of VAT rate and amount.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance withnullvalues.RateDetail(BigDecimal rate, BigDecimal amount) Creates a new instance with the specified values. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the amount.getRate()Gets the VAT rate.inthashCode()voidsetAmount(BigDecimal amount) Sets the amount.voidsetRate(BigDecimal rate) Sets the VAT rate.toString()
-
Constructor Details
-
RateDetail
public RateDetail()Creates a new instance withnullvalues. -
RateDetail
Creates a new instance with the specified values.- Parameters:
rate- the VAT rate (in percent)amount- the amount (in the bill currency)
-
-
Method Details
-
getRate
Gets the VAT rate.- Returns:
- the VAT rate (in percent)
-
setRate
Sets the VAT rate.- Parameters:
rate- the VAT rate (in percent)
-
getAmount
Gets the amount.- Returns:
- the amount (in bill currency)
-
setAmount
Sets the amount.- Parameters:
amount- the amount (in bill currency)
-
equals
-
hashCode
public int hashCode() -
toString
-