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

    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 Details

    • 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.