Class CurrencyAmountDTO
- java.lang.Object
-
- tech.cassandre.trading.bot.dto.util.CurrencyAmountDTO
-
public final class CurrencyAmountDTO extends Object
Currency amount (amount value and currency).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CurrencyAmountDTO.CurrencyAmountDTOBuilder
-
Field Summary
Fields Modifier and Type Field Description static CurrencyAmountDTO
ZERO
Zero.
-
Constructor Summary
Constructors Constructor Description CurrencyAmountDTO(String newValue, CurrencyDTO newCurrency)
Constructor.CurrencyAmountDTO(BigDecimal newValue, CurrencyDTO newCurrency)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CurrencyAmountDTO.CurrencyAmountDTOBuilder
builder()
boolean
equals(Object o)
CurrencyDTO
getCurrency()
Currency.BigDecimal
getValue()
Amount value.int
hashCode()
String
toString()
-
-
-
Field Detail
-
ZERO
public static final CurrencyAmountDTO ZERO
Zero.
-
-
Constructor Detail
-
CurrencyAmountDTO
public CurrencyAmountDTO(String newValue, CurrencyDTO newCurrency)
Constructor.- Parameters:
newValue
- amount valuenewCurrency
- amount currency
-
CurrencyAmountDTO
public CurrencyAmountDTO(BigDecimal newValue, CurrencyDTO newCurrency)
Constructor.- Parameters:
newValue
- amount valuenewCurrency
- amount currency
-
-
Method Detail
-
builder
public static CurrencyAmountDTO.CurrencyAmountDTOBuilder builder()
-
getValue
public BigDecimal getValue()
Amount value.
-
getCurrency
public CurrencyDTO getCurrency()
Currency.
-
-