Package com.caplin.motif.fx.config
Class FormattedAmount
- java.lang.Object
-
- com.caplin.motif.fx.config.FormattedAmount
-
public class FormattedAmount extends Object
-
-
Constructor Summary
Constructors Constructor Description FormattedAmount(BigDecimal amount, String currency, int dps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
BigDecimal
getAmount()
String
getCurrency()
int
getDps()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
FormattedAmount
public FormattedAmount(@Nonnull BigDecimal amount, @Nonnull String currency, int dps)
- Parameters:
amount
- The amount, e.g. 1234.50currency
- The currency, e.g. GBPdps
- The number of decimal places of the amount, e.g. 2
-
-
Method Detail
-
getAmount
@Nonnull public BigDecimal getAmount()
-
getDps
public int getDps()
-
-