Package com.caplin.motif.fx.config
Class FormattedPoints
- java.lang.Object
-
- com.caplin.motif.fx.config.FormattedPoints
-
public class FormattedPoints extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description FormattedPoints(java.math.BigDecimal points, int digitsBeforePips, int numberOfPips, int dps)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
int
getDigitsBeforePips()
int
getDps()
int
getNumberOfPips()
java.math.BigDecimal
getPoints()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
FormattedPoints
public FormattedPoints(@Nonnull java.math.BigDecimal points, int digitsBeforePips, int numberOfPips, int dps)
- Parameters:
points
- The points, 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
-
getPoints
@Nonnull public java.math.BigDecimal getPoints()
-
getDigitsBeforePips
public int getDigitsBeforePips()
-
getNumberOfPips
public int getNumberOfPips()
-
getDps
public int getDps()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-