Class CurrencyAmount
- java.lang.Object
-
- tech.cassandre.trading.bot.util.jpa.CurrencyAmount
-
@Embeddable public class CurrencyAmount extends Object
Currency amount (amount value + currency).
-
-
Constructor Summary
Constructors Constructor Description CurrencyAmount()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getCurrency()
Amount currency.BigDecimal
getValue()
Amount value.int
hashCode()
void
setCurrency(String currency)
Amount currency.void
setValue(BigDecimal value)
Amount value.String
toString()
-
-
-
Method Detail
-
getValue
public BigDecimal getValue()
Amount value.
-
getCurrency
public String getCurrency()
Amount currency.
-
setValue
public void setValue(BigDecimal value)
Amount value.
-
setCurrency
public void setCurrency(String currency)
Amount currency.
-
-