Class CurrencyAmountDTO


  • public class CurrencyAmountDTO
    extends Object
    Currency amount (amount value + currency).
    • Constructor Detail

      • CurrencyAmountDTO

        public CurrencyAmountDTO()
        Constructor for empty amount (0 USD).
      • CurrencyAmountDTO

        public CurrencyAmountDTO​(BigDecimal newValue,
                                 CurrencyDTO newCurrency)
        Constructor.
        Parameters:
        newValue - amount value
        newCurrency - amount currency
    • Method Detail

      • getValue

        public final BigDecimal getValue()
        Getter for value.
        Returns:
        value
      • getCurrency

        public final CurrencyDTO getCurrency()
        Getter for currency.
        Returns:
        currency
      • isValueProvided

        public final boolean isValueProvided()
        Getter for valueProvided.
        Returns:
        valueProvided