Class Amount


  • public class Amount
    extends Object
    Amount
    • Constructor Detail

      • Amount

        public Amount()
    • Method Detail

      • getDecimalValue

        public BigDecimal getDecimalValue()
      • getValue

        public Long getValue()
        the amount's value in minor units
        Returns:
        value
      • setValue

        public void setValue​(Long value)
      • getCurrency

        public String getCurrency()
        the amount's three letter currency code (ISO 4217)
        Returns:
        currency
      • setCurrency

        public void setCurrency​(String currency)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object