Class MonetaryAmount

    • Constructor Detail

      • MonetaryAmount

        public MonetaryAmount()
    • Method Detail

      • setAmount

        public void setAmount​(Double amount)

        The numerical amount of an offering or transaction.

        Parameters:
        amount - The numerical amount of an offering or transaction.
      • getAmount

        public Double getAmount()

        The numerical amount of an offering or transaction.

        Returns:
        The numerical amount of an offering or transaction.
      • withAmount

        public MonetaryAmount withAmount​(Double amount)

        The numerical amount of an offering or transaction.

        Parameters:
        amount - The numerical amount of an offering or transaction.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setCurrencyCode

        public void setCurrencyCode​(String currencyCode)

        The currency code of a monetary amount. For example, USD means "U.S. dollars."

        Parameters:
        currencyCode - The currency code of a monetary amount. For example, USD means "U.S. dollars."
        See Also:
        CurrencyCode
      • getCurrencyCode

        public String getCurrencyCode()

        The currency code of a monetary amount. For example, USD means "U.S. dollars."

        Returns:
        The currency code of a monetary amount. For example, USD means "U.S. dollars."
        See Also:
        CurrencyCode
      • withCurrencyCode

        public MonetaryAmount withCurrencyCode​(String currencyCode)

        The currency code of a monetary amount. For example, USD means "U.S. dollars."

        Parameters:
        currencyCode - The currency code of a monetary amount. For example, USD means "U.S. dollars."
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CurrencyCode
      • setCurrencyCode

        public void setCurrencyCode​(CurrencyCode currencyCode)

        The currency code of a monetary amount. For example, USD means "U.S. dollars."

        Parameters:
        currencyCode - The currency code of a monetary amount. For example, USD means "U.S. dollars."
        See Also:
        CurrencyCode
      • withCurrencyCode

        public MonetaryAmount withCurrencyCode​(CurrencyCode currencyCode)

        The currency code of a monetary amount. For example, USD means "U.S. dollars."

        Parameters:
        currencyCode - The currency code of a monetary amount. For example, USD means "U.S. dollars."
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        CurrencyCode
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object