Class SwicoBillInformation.PaymentCondition

  • Enclosing class:
    SwicoBillInformation

    public static class SwicoBillInformation.PaymentCondition
    extends java.lang.Object
    Payment condition detail: a tuple of discount and validity in days.
    • Constructor Summary

      Constructors 
      Constructor Description
      PaymentCondition()
      Creates a new instance with null values.
      PaymentCondition​(java.math.BigDecimal discount, int days)
      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)
      int getDays()
      Gts the number of days the discount is valid.
      java.math.BigDecimal getDiscount()
      Gets the discount.
      int hashCode()
      void setDays​(int days)
      Sets the number of days the discount is valid.
      void setDiscount​(java.math.BigDecimal discount)
      Sets the discount.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • PaymentCondition

        public PaymentCondition()
        Creates a new instance with null values.
      • PaymentCondition

        public PaymentCondition​(java.math.BigDecimal discount,
                                int days)
        Creates a new instance with the specified values.
        Parameters:
        discount - the discount (in percent)
        days - the number of days
    • Method Detail

      • getDiscount

        public java.math.BigDecimal getDiscount()
        Gets the discount.
        Returns:
        the discount (in percent)
      • setDiscount

        public void setDiscount​(java.math.BigDecimal discount)
        Sets the discount.
        Parameters:
        discount - the discount (in percent)
      • getDays

        public int getDays()
        Gts the number of days the discount is valid.
        Returns:
        the number of days
      • setDays

        public void setDays​(int days)
        Sets the number of days the discount is valid.
        Parameters:
        days - the number of days
      • 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