Class CurrencyAmountDTO
- java.lang.Object
-
- tech.cassandre.trading.bot.util.dto.CurrencyAmountDTO
-
public class CurrencyAmountDTO extends Object
Currency amount (amount value + currency).
-
-
Constructor Summary
Constructors Constructor Description CurrencyAmountDTO()
Constructor for empty amount (0 USD).CurrencyAmountDTO(BigDecimal newValue, CurrencyDTO newCurrency)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CurrencyDTO
getCurrency()
Getter for currency.BigDecimal
getValue()
Getter for value.boolean
isValueProvided()
Getter for valueProvided.String
toString()
-
-
-
Constructor Detail
-
CurrencyAmountDTO
public CurrencyAmountDTO()
Constructor for empty amount (0 USD).
-
CurrencyAmountDTO
public CurrencyAmountDTO(BigDecimal newValue, CurrencyDTO newCurrency)
Constructor.- Parameters:
newValue
- amount valuenewCurrency
- 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
-
-