Class Currency


  • public class Currency
    extends java.lang.Object
    The monetary value in the currency indicated, in ISO 4217 standard format.
    • Constructor Summary

      Constructors 
      Constructor Description
      Currency()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getUnit()
      The ISO 4217 format 3-character currency code.
      java.math.BigDecimal getValue()
      The monetary value.
      int hashCode()  
      void setUnit​(java.lang.String unit)  
      void setValue​(java.math.BigDecimal value)  
      java.lang.String toString()  
      Currency unit​(java.lang.String unit)  
      Currency value​(java.math.BigDecimal value)  
      • Methods inherited from class java.lang.Object

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

      • Currency

        public Currency()
    • Method Detail

      • value

        public Currency value​(java.math.BigDecimal value)
      • getValue

        public java.math.BigDecimal getValue()
        The monetary value.
        Returns:
        value
      • setValue

        public void setValue​(java.math.BigDecimal value)
      • unit

        public Currency unit​(java.lang.String unit)
      • getUnit

        public java.lang.String getUnit()
        The ISO 4217 format 3-character currency code.
        Returns:
        unit
      • setUnit

        public void setUnit​(java.lang.String unit)
      • 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