Class FormattedPoints

java.lang.Object
com.caplin.motif.fx.config.FormattedPoints

public class FormattedPoints extends Object
  • Constructor Details

    • FormattedPoints

      public FormattedPoints(@Nonnull BigDecimal points, int digitsBeforePips, int numberOfPips, int dps)
      Parameters:
      points - The points, e.g. 1.12345
      digitsBeforePips - The number of digits between the decimal character and the pips, e.g. 2
      numberOfPips - The number of pips digits, e.g. 2
      dps - The number of decimal places of the rate, e.g. 5
  • Method Details

    • getPoints

      @Nonnull public BigDecimal getPoints()
    • getDigitsBeforePips

      public int getDigitsBeforePips()
    • getNumberOfPips

      public int getNumberOfPips()
    • getDps

      public int getDps()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object