Package net.codecrete.qrbill.generator
Class SwicoBillInformation.RateDetail
- java.lang.Object
-
- net.codecrete.qrbill.generator.SwicoBillInformation.RateDetail
-
- Enclosing class:
- SwicoBillInformation
public static class SwicoBillInformation.RateDetail extends java.lang.ObjectVAT rate detail: a tuple of VAT rate and amount.
-
-
Constructor Summary
Constructors Constructor Description RateDetail()Creates a new instance withnullvalues.RateDetail(java.math.BigDecimal rate, java.math.BigDecimal amount)Creates a new instance with the specified values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.math.BigDecimalgetAmount()Gets the amount.java.math.BigDecimalgetRate()Gets the VAT rate.inthashCode()voidsetAmount(java.math.BigDecimal amount)Sets the amount.voidsetRate(java.math.BigDecimal rate)Sets the VAT rate.java.lang.StringtoString()
-
-
-
Constructor Detail
-
RateDetail
public RateDetail()
Creates a new instance withnullvalues.
-
RateDetail
public RateDetail(java.math.BigDecimal rate, java.math.BigDecimal amount)Creates a new instance with the specified values.- Parameters:
rate- the VAT rate (in percent)amount- the amount (in the bill currency)
-
-
Method Detail
-
getRate
public java.math.BigDecimal getRate()
Gets the VAT rate.- Returns:
- the VAT rate (in percent)
-
setRate
public void setRate(java.math.BigDecimal rate)
Sets the VAT rate.- Parameters:
rate- the VAT rate (in percent)
-
getAmount
public java.math.BigDecimal getAmount()
Gets the amount.- Returns:
- the amount (in bill currency)
-
setAmount
public void setAmount(java.math.BigDecimal amount)
Sets the amount.- Parameters:
amount- the amount (in bill currency)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-