Class SwicoBillInformation.RateDetail

  • Enclosing class:
    SwicoBillInformation

    public static class SwicoBillInformation.RateDetail
    extends java.lang.Object
    VAT rate detail: a tuple of VAT rate and amount.
    • Constructor Summary

      Constructors 
      Constructor Description
      RateDetail()
      Creates a new instance with null values.
      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
      boolean equals​(java.lang.Object o)
      java.math.BigDecimal getAmount()
      Gets the amount.
      java.math.BigDecimal getRate()
      Gets the VAT rate.
      int hashCode()
      void setAmount​(java.math.BigDecimal amount)
      Sets the amount.
      void setRate​(java.math.BigDecimal rate)
      Sets the VAT rate.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RateDetail

        public RateDetail()
        Creates a new instance with null values.
      • 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:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object