Interface ConversionStrategy

  • All Known Implementing Classes:
    DefaultConversionStrategy

    public interface ConversionStrategy
    Pluggable conversion abstraction for converting and rounding functionality
    Since:
    4.3
    Spring Bean ID:
    conversionStrategy
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double convert​(double value, double sourceFactor, double targetFactor)
      converts a given value with targetFactor divided by sourceFactor
      double round​(double value, int digits)
      rounds a given value to the specified digits.
    • Method Detail

      • convert

        double convert​(double value,
                       double sourceFactor,
                       double targetFactor)
        converts a given value with targetFactor divided by sourceFactor
      • round

        double round​(double value,
                     int digits)
        rounds a given value to the specified digits.