Package com.caplin.motif.fx.config
Class FormattedRate
- java.lang.Object
-
- com.caplin.motif.fx.config.FormattedRate
-
public class FormattedRate extends Object
-
-
Constructor Summary
Constructors Constructor Description FormattedRate(BigDecimal rate, int digitsBeforePips, int numberOfPips, int dps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
getDigitsBeforePips()
int
getDps()
int
getNumberOfPips()
BigDecimal
getRate()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
FormattedRate
public FormattedRate(@Nonnull BigDecimal rate, int digitsBeforePips, int numberOfPips, int dps)
- Parameters:
rate
- The rate, e.g. 1.12345digitsBeforePips
- The number of digits between the decimal character and the pips, e.g. 2numberOfPips
- The number of pips digits, e.g. 2dps
- The number of decimal places of the rate, e.g. 5
-
-
Method Detail
-
getRate
@Nonnull public BigDecimal getRate()
-
getDigitsBeforePips
public int getDigitsBeforePips()
-
getNumberOfPips
public int getNumberOfPips()
-
getDps
public int getDps()
-
-